Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Daniel Bahl on April 08, 2002, 06:08:51 PM
-
When i create a useraccount and try to login i get following, how do i enable Standard user login ??
-------------------------
Mitel Networks SME Server
-------------------------
Standard user login services have been disabled.
Type "end" and press ENTER to terminate this connection:
And can i set the "start"dir of a user ??
Thanks
daniel bahl jensen
-
just a point in the direction of: search forums or man page on chsh; the start dir can be set in the shell config files, for bash check its man page etc etc
-
As far as I remember, just edit the /etc/passwd file
Find the user you want and instead of /bin/false write /bin/bash, or whatever shell you prefer.
/Tomas
-
NO! DO NOT EDIT THE PASSWD FILE MANUALLY! There's no need to, and it's easy to screw it up. Use the chsh command instead, as suggested by P Kidd (and a search here on chsh will pull up lots more information).
-
Hi ;) i got the chsh to work - Thx to P Kidd :)
Thanks
But not the Startdir
can you please help me again with that ;)
-
i got it ;) just made a alias like this
dex2k@enid:~$ alias changetome='cd /home/www'
dex2k@enid:~$ changetome
so now i works ;)
But the user can se my /etc/ files and so on and so fourth
can i deny other ibays and config files for him ?
daniel
-
Alternativly, try my e-smith-usershellaccess contrib from:
ftp://ftp.e-smith.org/pub/e-smith/contrib/DanielvanRaay/RPMS/noarch/
This will setup a server-manager panel where you can turn on shell access for user accounts.
As for their starting folder, you could always try:
echo "cd /path/to/start/folder/" > ~useraccount/.bash_profile
There isn't really an easy way to stop users from going elsewhere in the file-tree though.
Daniel van Raay
-
Thanks for all youre answers
Can i not i deny access to /etc ?
daniel