LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   User account with SFTP access only (https://www.linuxquestions.org/questions/linux-general-1/user-account-with-sftp-access-only-610615/)

nsfx 01-02-2008 11:59 AM

User account with SFTP access only
 
I have a few shared folders on my box that I'd like to give people access to via SSH, but I don't want to have to make a user account for every person. I want a single, limited-access SFTP-only account. Ideally this account would be very limited, i.e. no telnet, no ability to execute commands, no access to other parts of the file system, just SFTP access to a specific directory.

What would be the best way to accomplish this (without patching openssh with something like SSHjail)?

Any help is greatly appreciated.

MoonMind 01-02-2008 03:31 PM

I just saw a feed on http://www.lxer.com/ concerning that:

http://www.cyberciti.biz/tips/rhel-c...ssh-shell.html

I hope it's worth it (I didn't read it).

M.

nsfx 01-03-2008 11:39 AM

Thanks MoonMind. I also did a bit of research and found two solutions for this: rssh as you linked to and scponly. Both support chroot jails. I am setting up scponly currently.

xptools 01-06-2008 06:52 PM

Nah, too complicated.

There is a much simpler way for a user that
can log in to FTP, but still won't be able to log in to a shell.


All times are GMT -5. The time now is 12:55 AM.