How to jailshell SSH user

How to jailshell SSH user

Hello,

I needed to access cPanel backup folder /backup/cpbackup/weekly using SSH, so I add user "add user -d /backup/cpbackup/weekly", then set password, and added that user to the list of permited users to login to the server at sshd_config.

I can access withouth any problems and download my backups using SFTP, but the problem is that I can read almost any files on the server, such as /etc/passwd and download it too How to jailshell SSH user

I dont really want to "jaishell" the user because it is using cPanel backups weekly folder as home directory, so Im sure it will cause lot of issues with cPanel backup system, is there any other way to restric the user to view only files from weekly directory?


This server is running RHE 5.2 + latest cPanel 11 Release version.

Thanks.
Last edited by sh4ka; 10-10-2008 at 05:26 PM.

 

 

 

 

Top