Configuring Fedora Core 4 and Webhost anager for SFTP
Posted on 2006-05-03
Here's my situation.
I am running Fedora Core 4 with Webhost Manager and cPanel to manage my sites. I am able to SFTP and SSH into the sites, but SFTP allows me to change directory up to /and then down into /bin, /usr, and other system directories. I would like to be able to SFTP/SSH into the server and the individual sites, but I would like to restrict access to the /home/username directory for each account. Ideally, the only user that would be allowed SFTP would be me on my own user account. Is there a way to accomplish this using ProFTPd and the Fedora/Webhost Manager setup?
Also, I would like to restrict shell access to most accounts. Currently, if I use jailshell, the users can log in and get up to / and then into the system directories, although they are prevented from acessing the files. If I use noshell, this also disables ftp.
Ideally, a normal user would have regular ftp access, no sftp or shell (SSH), and my user would have SFTP and SSH. Any way to do this?