[100779] in RedHat Linux List
Re: Deleting shells for users
daemon@ATHENA.MIT.EDU (Anthony E. Greene)
Mon Nov 23 10:31:22 1998
Date: Mon, 23 Nov 1998 16:08:03 +0100
To: "redhat-list@redhat.com" <redhat-list@redhat.com>
From: "Anthony E. Greene" <agreene@pobox.com>
In-Reply-To: <19981123144143.AAA26952@office4.office.new>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
At 09:44 1998-11-23 -0500, Ed Lawson wrote:
>I have several users added to a RH 5.0 machine so they can get their
>email from IMAP. However, I want to change their accounts so they cannot
>access the machine. In other words, they get no shell if they log in.
>What is the best way to do this? I need to be able to do this from the
>command line as the GUI tools are not available. What needs to be used
>as a replacement for the standard shell in each users entry.
Edit /etc/passwd and change the 7th field (default shell) to /bin/false. If
you will be adding lots of users like this, it would be easier to edit
/etc/default/useradd to set the desired default values.
Tony
--
Anthony E. Greene <agreene@pobox.com>
Homepage and PGP Key: <http://www.pobox.com/~agreene/>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.