Date: Sun, 27 May 2001 12:17:11 -0500 From: Mike Meyer <mwm@mired.org> To: "Lim Seng Chor" <Lim.Seng.Chor@sit.edu.my> Cc: questions@freebsd.org, jbiquez@icsmx.com Subject: Re: Advice on ISP services Please. Message-ID: <15121.13975.857231.124547@guru.mired.org> In-Reply-To: <3B11A3FD.6507.AD6F41D@localhost> References: <84326547@toto.iv> <3B11A3FD.6507.AD6F41D@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
Lim Seng Chor <Lim.Seng.Chor@sit.edu.my> types: > On 27 May 2001, at 9:14, Mike Meyer wrote: > > > Lim Seng Chor <Lim.Seng.Chor@sit.edu.my> types: > > > On 26 May 2001, at 23:01, Jorge Biquez wrote: > > > > > > > > > > - How to restrict the access of FTP to only the specified > > > > directory > > > of > > > > the user. And that they can not see other users directories. - > > > > > > try look for chroot'ed ftp (http://ftp.eenet.ee/LDP/HOWTO/mini/FTP- > > > 6.html) or play around with file/directory permision (if you know > > > how to play with r, w, and x) > > > > chroot also keeps them out of system directories. You can use group > > permissions to keep them out of other users directories by putting > > each user in their own group, and making the directory owned by the > > group that the public servers run as, mode 750. You can't use > > file/directory permissions to shut users out of the rest of the > > system. > > chown -R root.wheel /usr > chmod 700 /usr > chmod 700 /var > chmod 711 /etc > chmod 711 / You've just made the system unusable to normal users - nothing in /usr/bin, /usr/local, and so on can be used by anyone but root. This is not good. > place the necessary binaries (compiled with static library) in > /home (not /usr/home), and do chroot..since it is only allow for ftp > access. If you're going to copy binaries and chroot, there's no need to play with the permissions at all. chroot restricts users to the subtree chrooted to, all by itself. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15121.13975.857231.124547>