[101100] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Deleting shells for users

daemon@ATHENA.MIT.EDU (Pete Jackson)
Tue Nov 24 16:12:58 1998

Date: Tue, 24 Nov 1998 21:11:38 +0000
From: Pete Jackson <pete@complete.co.uk>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

edit the /etc/passwd file for the specific user and replace the end of the account line with /dev/null instead of
/bin/bash....works a treat.


Tomas Buday wrote:

> i guess it's a good idea to edit /etc/default/useradd
> before adding the next 100 users;)
> but for now, use 'sed' or 'vi' to substitute the shell field
> with something else.
>
> > 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.
> > TIA
>
> --
>   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.




-- 
  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.


home help back first fref pref prev next nref lref last post