From owner-freebsd-questions Thu Jul 9 11:02:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA22301 for freebsd-questions-outgoing; Thu, 9 Jul 1998 11:02:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gate.ljis.ml.org (cyberworld.demon.co.uk [158.152.125.109]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA22292 for ; Thu, 9 Jul 1998 11:02:19 -0700 (PDT) (envelope-from ljohnston@cyberworld.demon.co.uk) Received: (from ljohnston@localhost) by gate.ljis.ml.org (8.8.8/8.8.8) id TAA01150; Thu, 9 Jul 1998 19:01:48 GMT (envelope-from ljohnston) Message-ID: <19980709190148.A1087@ljis.ml.org> Date: Thu, 9 Jul 1998 19:01:48 +0000 From: Lee Johnston To: "Pavel V. Antipov" , questions@FreeBSD.ORG Subject: Re: About passwd e.t.c. References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Pavel V. Antipov on Thu, Jul 09, 1998 at 02:19:47PM +0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jul 09, 1998 at 02:19:47PM +0400, Pavel V. Antipov wrote: > Hi ! > > I added a mail-user to FreeBSD 2.2.5 with shell /sbin/nologin . > Mail service work properly but I cannot change shell for this mail-user. > I manualy wrote new shell program into /etc/passwd AND /etc/master.passwd > but shell (after rebooting) was not choose. > > Questions: > 1. Why I can't change shell program ? > 2. Why can I change shell program ? > 3. How can I change password for that mail-user (user need it)? Well, You could use these ways to change the shell: 1. Edit both password files automatically using vipw. 2. Change you users shell by using chsh [username]. As for the password, use the following as root: passwd [username] For more info see the man pages. Hope this helps you, Lee. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message