Dear All, I would like to create new user where there can both ftp and also ssh to my server. The problem when they login either via ssh or ftp I just want them to be able to see only particular folder and not other folder. How can I control that? Thank you.
For SSH, take a look here: http://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny Which FTP server do you use?
I haven't tried it, and it also depends on the OpenSSH version that comes with CentOS. Must be at least 4.8. This tutorial is for Fedora 7, it might as well work on CentOS: http://www.howtoforge.com/chroot_ssh_sftp_fedora7