Networking Forums

Networking Forums > Computer Networking > Linux Networking > pure-ftpd issues (KeepAllFiles and NoRename only for some users)

Reply
Thread Tools Display Modes

pure-ftpd issues (KeepAllFiles and NoRename only for some users)

 
 
Davide DG
Guest
Posts: n/a

 
      06-27-2005, 05:52 PM
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.
 
Reply With Quote
 
 
 
 
Davide DG
Guest
Posts: n/a

 
      06-28-2005, 12:11 AM
Davide DG <(E-Mail Removed)> scrisse:

> 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".


And... that's what I ended to do! ^_^

I patched 1.0.19 (debian sarge) source code, and it seems to work like a
charm! ^__^


--
Davide DG.
tieni per te la spam per rispondermi via email.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftpd and SuSE 11.1 Uwe Nass Linux Networking 0 08-06-2010 09:23 AM
ftpd - only users, not anonymous stravinskij Linux Networking 5 07-16-2007 06:27 PM
Pure-FTPd: Show symlinks as real folders? sunebeck@gmail.com Linux Networking 0 08-11-2006 01:41 PM
pure-ftpd 1.0.17a problem ox Linux Networking 0 12-26-2003 12:22 AM
Pure-FTPd + LDAP + MySQL + PGSQL + Virtual-Users + Quota How To Netkiller Linux Networking 0 06-27-2003 03:00 PM



1 2 3 4 5 6 7 8 9 10 11