ECartman
10-20-2002, 12:24 PM
i created a user, just for ftp, but how to I restrict the directories it is allowed it. Right now it has access to everything that a normal user does. but through ftp (anyone else see a security risk here :)).
|
Click to See Complete Forum and Search --> : restricting directory access to ftp user ECartman 10-20-2002, 12:24 PM i created a user, just for ftp, but how to I restrict the directories it is allowed it. Right now it has access to everything that a normal user does. but through ftp (anyone else see a security risk here :)). element-x 10-21-2002, 09:52 AM Which FTP Daemon are you using? Thanatos 10-21-2002, 01:25 PM add the following line to your proftpd.conf (should be in your /etc directory) DefaultRoot ~ that means that if they type cd / it will take them to their /home/username or /usr/local/username or wherever their home directory is. cd .. will NOT put them any closer to the actual root. incidentally, for pretty much any commandline parameter, ~ = user's home directory. Hope this helps! Thanatos ECartman 10-21-2002, 02:47 PM Ok i'll try that, thanks. unfortunatly proftpd isn't working right now for me at all (see proftpd problems (http://www.linuxnewbie.org/forum/showthread.php?s=&threadid=70291) ). Thanatos 10-21-2002, 06:15 PM check it out again. I posted a link to config files on there; maybe they will help. ECartman 10-22-2002, 11:59 AM excelent, that 'DefaultRoot ~' worked, thanks a lot. MY FTP SERVER IS NOW UP AND RUNNING, *Dancing around the room*. Cynthia Blue 12-08-2002, 05:06 PM I would like to do this as well, but I'm using vsftp... it came with my installation of RH 8. Know of a nice quick way for vsftp? :) Thanks. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |