Answer» I just bought a dedicated server and i want to know how to limit users to their own home directory.
Example : User andrew DIR home/andrew Can't browse to root/ or usr Dir but can only browse within home directory only
For Ftp and ssh Please help !
O.s Centos 32 bityou will have to modify the permissions-root, user, etc. etc.
http://www.cyberciti.biz/tips/vsftp-chroot-users-limit-to-only-their-home-directory.html http://www.cyberciti.biz/faq/restrict-linux-users-to-their-home-directories-only/For FTP, it DEPENDS on which FTP server you're using (you don't specify). For SSH, it's a little more complicated. You still want your users to be able to access certain BINARIES - and they're always stored outside the user's home directory. Anyway, you can try rbash as suggested above, or go down the chroot ssh route (my PREFERENCE). Read more at >this HowTo<.The service I have uses a program called cpanel which is a graphical interface that does the work for me. I don't even think about setting THINGS my hand.
For more information, Google cpanel demo
|