Web Hosting Talk







View Full Version : chrooting users to their homes


daru
03-27-2004, 03:13 PM
Hi ,
i want to offer ssh or telnet access ,but with these acesses users can view my server's folders ,how to choroot users to their homes as i do with proftpd.
thanks

daru
03-27-2004, 03:18 PM
ahh forgot :)
how to deny a user so he can't execute some commands like 'tar' 'make' and others ...

youandme
03-27-2004, 03:25 PM
- let's set permission to some important command like wget,tar,rm.......... chmod 700 ( only root can run it )
and i tried to set chmod 700 to /root
- 701 : /etc and /home/httpd/vhosts ( i used plesk)
and dont run mysql with user mysql , run it as normal user . u can go to www.mysql.com to more info :)
- let's chroot jail............
...... anymore security way ??? we can discuss here :)
sorry for my bad english :)

daru
03-27-2004, 04:41 PM
thanks !
i tried that on my /etc/passwd to 700 but http://www.domain.com/~user wont work cause it verify that the user exists on passwd ,so if i put read privileges on that file ,anyone with a cgi wraped with its user/group or with a telnet or ssh access can read and see my users :(
and for mysql can u explain more ? thanks a lot