Adduser and /etc/passwd
Smoot Carl-Mitchell
smoot at tic.com
Wed Aug 15 19:46:46 UTC 2007
On Wed, 2007-08-15 at 08:29 +0200, Mario Vukelic wrote:
> As Matthew said, you can set the shell to /bin/false, but I find it
> neater to repeat what Ubuntu does to disable root logins: Use "!" as the
> password in /etc/shadow
But be careful with this method. If users have set up public key
authentication using SSH, then putting a '!' in /etc/shadow will not
prevent them from logging in remotely.
--
Smoot Carl-Mitchell
System/Network Architect
email: smoot at tic.com
cell: +1 602 421 9005
home: +1 480 922 7313
More information about the ubuntu-users
mailing list