Ftpd
Hello I have problems to understand the way ftpd works. My goal is to create a ftp account where the user can download and upload files, and create directories where they could upload the files. But they should not remove nor rename any file or directory. 1) man chmod talks about a sticky flag. Ive try that. but: (ls -la on the server) drwxr-xr-t 4 usuarioftp usuarioftp 512 Jan 22 19:01 usuarioftp lftp login.../ lftp [EMAIL PROTECTED]:~ rm test rm ok, `test' removed i dont want users to be able to delete any files... 2) I dont understand permitions... i.e. lftp [EMAIL PROTECTED]:~ ls root-file -rw--- 1 rootwheel 0 Jan 22 19:12 root-file lftp [EMAIL PROTECTED]:~ mv root-file why_can_i_do_this rename successful ps aux | grep ftp shows: usuarioftp 26747 1.0 0.3 1928 1404 ?? Ss7:14PM 0:00.01 ftpd: 127.0.0.1: user/usuarioftp: LIST\r\n (ftpd) why can the ftp user rename the root file? how do i make users be able just to 1.- create directories 2.- upload files 3.- downlaod files thank you, -- _ Phillip Neumann [EMAIL PROTECTED] www.sofsis.cl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ftpd
Ok. But i dont would like to switch ftp deamon. I already have ftpd in production thanks, Oliver Leitner wrote: you might want to give proftpd a try... /usr/ports/ftp/proftpd for more info on proftpd you might wanna look on www.proftpd.org they have quite a good documentation on it. this should cover both of your questions... Greetings Oliver Leitner Technical Staff http://www.shells.at On Friday 21 January 2005 01:36, Phillip Neumann wrote: Hello I have problems to understand the way ftpd works. My goal is to create a ftp account where the user can download and upload files, and create directories where they could upload the files. But they should not remove nor rename any file or directory. 1) man chmod talks about a sticky flag. Ive try that. but: (ls -la on the server) drwxr-xr-t 4 usuarioftp usuarioftp 512 Jan 22 19:01 usuarioftp lftp login.../ lftp [EMAIL PROTECTED]:~ rm test rm ok, `test' removed i dont want users to be able to delete any files... 2) I dont understand permitions... i.e. lftp [EMAIL PROTECTED]:~ ls root-file -rw--- 1 rootwheel 0 Jan 22 19:12 root-file lftp [EMAIL PROTECTED]:~ mv root-file why_can_i_do_this rename successful ps aux | grep ftp shows: usuarioftp 26747 1.0 0.3 1928 1404 ?? Ss7:14PM 0:00.01 ftpd: 127.0.0.1: user/usuarioftp: LIST\r\n (ftpd) why can the ftp user rename the root file? how do i make users be able just to 1.- create directories 2.- upload files 3.- downlaod files thank you, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- _ Phillip Neumann [EMAIL PROTECTED] www.sofsis.cl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ftpd
Svein Halvor Halvorsen wrote: * Phillip Neumann [2005-01-21 00:36 -] 2) I dont understand permitions... i.e. lftp [EMAIL PROTECTED]:~ ls root-file -rw--- 1 rootwheel 0 Jan 22 19:12 root-file lftp [EMAIL PROTECTED]:~ mv root-file why_can_i_do_this rename successful I'm guessing that the directory in which the file resides is writable for the ftp-user. The user cannot read or write to the file itself, but it can read and write to the directory. That means that the user can delete and rename any file in that directory, but not copy (because that requires read-permissions). Your right, The root directory is writeable by the ftp user. But if i do not let the dir writeable, the user will not be able to upload anything... How would i setup things, so users can upload and download, but not delete nor rename? thanks in advance! -- _ Phillip Neumann [EMAIL PROTECTED] www.sofsis.cl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]