View previous topic :: View next topic |
Author |
Message |
dem1an n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 May 2002 Posts: 28
|
Posted: Tue Aug 29, 2006 3:29 am Post subject: Restricting root access in Openssh [SOLVED] |
|
|
1. I've looked for quite a while and can't seem to find the answer. How do I keep a user logging in with SSH (using OpenSSH) in his home directory. VSFTP has a setting for keeping users out of root and an access list for allowing certain users access here. I couldn't find the equivalent to this in openssh.
2. Is there any reason I shouldn't assign ftp users to the default ftp group that I found already created in my /etc/group?
3. Which vi editor do you recommend that I emerge?
Thanks!
dem
Last edited by dem1an on Fri Sep 01, 2006 6:26 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
celestialwizard Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/BaldursGate/baldursgate_edwin.gif)
Joined: 15 Jun 2006 Posts: 81 Location: Brisbane, Australia
|
Posted: Tue Aug 29, 2006 4:15 am Post subject: |
|
|
there are plenty of documents on the net detailing how to setup a SSH Chroot Jail.
Also look at setting the user's shell to rbash which is a restricted version of bash (just a symlink) that enables some extra security features. _________________ I may be a hardware bigot, but my stuff works |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mad Merlin Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 09 May 2005 Posts: 1155
|
Posted: Tue Aug 29, 2006 4:19 am Post subject: |
|
|
1. You can't do that through SSH itself, once they log in they have a regular shell, if you want to lock them into ~, you'll have look into other methods, you could perhaps set their shell to rbash rather than bash, which restricts a lot of things.
2. Not that I'm aware of.
3. Vim. _________________ Game! - Where the stick is mightier than the sword! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dem1an n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 May 2002 Posts: 28
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|