Koozali.org: home of the SME Server

SSH Login

Daniel Bahl

SSH Login
« 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

P Kidd

Re: SSH Login
« Reply #1 on: April 08, 2002, 06:22:43 PM »
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

Tomas

Re: SSH Login
« Reply #2 on: April 08, 2002, 06:44:28 PM »
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

Dan Brown

Re: SSH Login
« Reply #3 on: April 08, 2002, 06:55:09 PM »
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).

Daniel Bahl

Re: SSH Login
« Reply #4 on: April 08, 2002, 06:59:15 PM »
Hi ;) i got the chsh to work - Thx to P Kidd :)

Thanks

But not the Startdir
can you please help me again with that ;)

Daniel Bahl

Re: SSH Login
« Reply #5 on: April 08, 2002, 07:14:59 PM »
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

Daniel van Raay

Re: SSH Login
« Reply #6 on: April 09, 2002, 01:59:05 PM »
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

Daniel Bahl

Re: SSH Login
« Reply #7 on: April 09, 2002, 05:37:59 PM »
Thanks for all youre answers

Can i not i deny access to /etc ?

daniel