|
From: Jamie C. <jca...@we...> - 2006-08-30 16:08:47
|
On 30/Aug/2006 05:31 and...@fr... wrote .. > Hi all, > I think that could exists an error in documentation. > > I am trying to create users which can only use mail. > > So I put /bin/false in their shell, and it is OK. > > But this is the end of the story; according to the webmin documentation > : > > ... > When a user logs in via telnet or at the console, or opens an xterm window > in X the users shell program will be run to interpret commands entered. > If > a user does not have a valid shell program or has one that does nothing > (like /bin/false), then that user will not be able to login. This can be > useful when creating users who can only read and send email. > ... > > If you leave the shell field empty, or put a non existing program (like > /shellnotexists as shell field) you CAN login via putty (ssh) > (of course you had to permit login by password) and issue any kind of > commands (ls, cd ......) > > If you correctly put /bin/false in the shell field, you login via putty > (ssh) and the window is closed immediatly (correct) > > I am running Suse 10.1 with latest kernel and patch > > I think that could be fine to update the help field So if the shell field is empty, when shell does a user get after logging in? I am very surprised that this works, unless the SSH server on some systems is automatically falling back to the /bin/sh shell if no valid shell is set in /etc/passwd. - Jamie |