pure-ftpd issues (KeepAllFiles and NoRename only for some users)
From: Davide DG (davidedgspam_at_fastwebnet.it)
Date: 06/27/05
- Previous message: Raeburn: "Windows network with a Linux server"
- Next in thread: Davide DG: "Re: pure-ftpd issues (KeepAllFiles and NoRename only for some users)"
- Reply: Davide DG: "Re: pure-ftpd issues (KeepAllFiles and NoRename only for some users)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Jun 2005 17:52:25 GMT
hi everybody,
I'm trying to implement this kind of ftp service:
a) /srv/ftproot contains the root of the hosted ftp files
b) subdirs of /srv/ftproot are the home directories of my users.
c) ordinary users can login and they will be chrooted in their
respective (/srv/ftproot/<homedir>/)
d) once a file is uploaded, it can't be renamed/deleted, nor can other
files.
d) "Administrators" must be able to login and see all the /srv/ftproot/
e) "Administrators" must have full privileges (delete, rename, etc.).
-> I am trying with PureFTPd, and I can satisfy every point, EXCEPT e)
I set up pureftpd with mysql, the relevant options I'm using are:
-A (ChrootEveryone)
-K (KeepAllFiles)
-G (NoRename (disallow_rename in the code))
Now I am stuck... because there seem to be no option to differentiate
one user from another, regarding the -K and the -G switches.
I think I should try using "-a" instead of "-A", and make administrators
members of the trusted group.... but I don't know exactly how to cope
with this.
Another "quick and dirty" option is to patch the source code (ftpd.c),
and selectively disable the "disallow_rename" and the "keepallfiles"
variables (put them to 0), if the user has a (new) flag like
"userisadmin".
Other options? Maybe switch to ProFtpd, which seems to support more
Apache-like ACLs (.ftpaccess files) ?
Please please please post some hints :) I'm pretty much stuck :(
Thanks in advance :)
-- Davide DG.
- Previous message: Raeburn: "Windows network with a Linux server"
- Next in thread: Davide DG: "Re: pure-ftpd issues (KeepAllFiles and NoRename only for some users)"
- Reply: Davide DG: "Re: pure-ftpd issues (KeepAllFiles and NoRename only for some users)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|