From owner-freebsd-questions Sun Nov 19 14:21:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.enteract.com (mail.enteract.com [207.229.143.33]) by hub.freebsd.org (Postfix) with ESMTP id A917137B479 for ; Sun, 19 Nov 2000 14:21:37 -0800 (PST) Received: from shell-1.enteract.com (dscheidt@shell-1.enteract.com [207.229.143.40]) by mail.enteract.com (8.9.3/8.9.3) with SMTP id QAA80083; Sun, 19 Nov 2000 16:21:36 -0600 (CST) (envelope-from dscheidt@enteract.com) Date: Sun, 19 Nov 2000 16:21:36 -0600 (CST) From: David Scheidt To: Sam Carleton Cc: FreeBSD Questions Subject: Re: manually changing users shell In-Reply-To: <3A184B47.7CB5F3C7@bigfoot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 19 Nov 2000, Sam Carleton wrote: :Ok, I give. I modified both the /etc/passwd and the /etc/master.passwd :files, but the shell still does not change. I am trying to change the :shell from /bin/sh to /bin/tcsh. Both shells are in the /etc/shells :file. How do I go about manually changing a users shell? It sounds like you need to run pwd_mkdb(8). This will recreate your /etc/spwd.db and /etc/pwd.db password databases. There is also a chsh(1) command to change user shells with. If you must edit the password file directly, use vipw(8). It does file locking, and the required post processing. Despite its name, the editor it uses is the value of your $EDITOR enviormental variable, so you can use your favorite editor if it doesn't happen to be nvi. David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message