From nobody Fri Jan 05 05:33:20 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T5qt66HyBz56Bl3 for ; Fri, 5 Jan 2024 04:17:18 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T5qt566wTz4N70 for ; Fri, 5 Jan 2024 04:17:17 +0000 (UTC) (envelope-from olivares14031@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="knJ/hhDl"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of olivares14031@gmail.com designates 2607:f8b0:4864:20::52e as permitted sender) smtp.mailfrom=olivares14031@gmail.com Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5ca1b4809b5so731099a12.3 for ; Thu, 04 Jan 2024 20:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704428236; x=1705033036; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wZve3NK7bg3FZ/hmOApsFeYzTS9GcBSSsq34kW/cB+s=; b=knJ/hhDlsb3odOYFgRNHwD+mlcF1Bhh93IGSRGMfThIjnatcF5ob1VPnoNd6gFYhZw cR3Ccu2zwfMYGnDJgo2i4lWs5TW6ZgKzH5sz13s7MENSoI3G/hQf6NlJ5RHCZyOwB20T nhYe1UZjbwf+AGXbcfbosrPYmmkX1xW5agUn8nelIfH2UfcToCCaNkj0rv86JVkTesJ5 wRC1fREO64nX9fbEJX3VPF82UeYwfR6XQoTQjJn9PMJVGUA5wsfhKOE8qAFvS6O5RfnS 7EdB7cR6jDPgqK5Tg7mLRTrmZiQNj7plmQQIUBrwsbR2rHNN4v8AiKna85NUf3ROjSYV Toig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704428236; x=1705033036; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wZve3NK7bg3FZ/hmOApsFeYzTS9GcBSSsq34kW/cB+s=; b=J7J892RPSrJlcNvX+mbScZtIntcz9u9mPjBdOLek9p3yEvxti6pWGMK5qy+36UH7Ik gBOnCl/DFwTTyL3inPdvnCV74DsDVpaaxVOLwUU1uUH0dZcNEXz0Ji1hh6MPebGGPzy0 gXVA8ia6bokL8sLowub0QdpCgeRz6C/sKF6mE+f0k3b1coWe6ynXI131WBWbpaW9NSb+ wvwWjNjz6eXSHQhBceRzS0E6fLlEiOQ494+r54URWrkKIOtTR+qicuSCg/49xtMxaiEu 82/11SfJsvHohm0Ni0RJC3R0DQybTuKtWh9x4vTgt8XO6Bbf2oRLAffcqRA4MAUZc9Wv bbjg== X-Gm-Message-State: AOJu0YzRlITRjMN/ZflkFs4J33VDF4Wh0yc1AIkp9WQgXKBJj2IkTsGB x2RnnzDX+UR9WIt3j8EJiyt+3piU6lzxTb9/v5gV6klY2bo= X-Google-Smtp-Source: AGHT+IEwHdeZFjY01OKy6XSvNJUQrfutkKe/iRBF8gwtfKaeJMya6xnR4Viis5Tl4/6UbgE+HRk7c9GwyA/USzGx7CI= X-Received: by 2002:a05:6a21:193:b0:199:391b:63ae with SMTP id le19-20020a056a21019300b00199391b63aemr287632pzb.10.1704428236284; Thu, 04 Jan 2024 20:17:16 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 From: Antonio Olivares Date: Thu, 4 Jan 2024 23:33:20 -0600 Message-ID: Subject: change root shell from /bin/csh to /bin/sh To: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.94 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.94)[-0.938]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52e:from] X-Rspamd-Queue-Id: 4T5qt566wTz4N70 Dear kind freebsd-users, I have a little problem. I have successfully updated to 14.0-RELEASE, but the root shell is still /bin/csh. I want to use /bin/sh as it is now the one that should be the default. olivares@rosewill:~ $ pwd /home/olivares olivares@rosewill:~ $ su - Password: root@rosewill:~ # pwd /root root@rosewill:~ # echo $SHELL /bin/csh root@rosewill:~ # chsh -s /bin/sh root chsh: entry inconsistent chsh: pw_copy: Invalid argument root@rosewill:~ # getent passwd root root:$6$D6idTtEyP0dqMfLQ$6Q3rUSk56XPZeHPfLh82UnTgw7hTDKFQLGI0BKRZpiy59.NjVzHPULJw0O38dQqKEjWiW.4EMh3TX56Xittz81:0:0:Charlie &:/root:/bin/csh root@rosewill:~ # uname -a FreeBSD rosewill 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Best Regards, Antonio