how to create FTP user to a specific folder (linux centos 5)

V4705
V4705 used Ask the Experts™
on
I don't need this user to be able to log-in or to use a /home/*username* folder.
I need the FTP user to go directly to: /var/spool/asterisk/monitor and have read-only permissions.

Any suggestions how to do so ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
you can create user with a default home directory /home/ftpuser and then delete the directory .

then configure ftp directory as following url:

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch15_:_Linux_FTP_Server_Setup

Author

Commented:
Thanks for the answer.
Unfortunately now I have issues with running FTP on this server (security reasons). Can I do the same thing with SFTP (SSH-based) ? (just to set a different "default" folder for this user, with read-only permission?).

Many thanks!
or

http://www.experts-exchange.com/OS/Linux/Distributions/Red_Hat/Q_25834540.html
sftp allow servral user access single folder
Asked by: rawandnet

I want to configure Sftp but allow only serveral people access just one folder. I don’t want them to be able to browse to root directory. Is that possible.


Install scponly:

http://www.sublimation.org/scponly/wiki/index.php/Main_Page

Create users accounts with scponly as shell and the same home directory for these users.
They will able to access only this home directory.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial