ProFTPD Question
Ok fellas, I'm a little baffled on this one, seems to make no sense to me and I've tried messing with this for the last few days.
Basically, I have an admin user that can go in and out of all directries within the /home directory. I have a configuration like so: <virtual host 1.1.1.1> defaultroot ~ <directory /home/ftp> <limit READ WRITE DIRS> AllowGroup ftp </limit> </directory> <directory /home/test> <limit READ WRITE DIRS> AllowGroup ftp </limit> </directory> </virtualhost> I made the admin's home /home and apart of group ftp, but when I login with admin and enter the directory /home/ftp or /home/test I can edit filenames/stor/retr with no trouble, BUT when I enter say /home/ftp/folder, most of my permissions are stripped. When I login to those directories with say user test that user has permissions to /home/test/folder. I am clueless as to why user admin does not retain these permissions. DOES ANYONE KNOW HOW TO FIX THIS??? Thanks. |
Try adding "*" to your directory line so that it will apply not to just the ftp directory but to all subdirectories. If that doesn't do it, try "/*" instead but that may not allow access to the ftp directory itself.
|
Jim, I've messed with this for almost a week now, of course I've tried <directory /home/ftp*> and <directory /home/ftp*> .
BOTH do not work whatsoever. It is very strange and I don't understand why the permissions are not transfered to sub directories.. maybe its a bug. Does anyone have a clue as to how to set up the same permissions for multiple users on sub directories???? I've pretty much given up...:( |
Sorry to have suggested something obvious!
Here's my proftpd.conf file, edited slightly to remove comments: ServerName "FTP to Jim Kyle" ServerType standalone DefaultServer on DefaultTransferMode binary Port 21 Umask 011 MaxInstances 30 User nobody Group nobody ExtendedLog /var/log/ftp.log AllowStoreRestart on <Directory /*> AllowOverwrite on </Directory> PassivePorts 51200 51299 <Anonymous ~ftp> User ftp Group ftp UserAlias anonymous ftp MaxClients 10 RequireValidShell off AnonRequirePassword off DisplayLogin welcome.msg <Directory incoming> <Limit STOR CWD CDUP PWD SIZE REST> AllowAll </Limit> <Limit READ DIRS DELE MKD> DenyAll </Limit> AllowOverwrite on </Directory> <Directory public> <Limit RETR CWD CDUP PWD DIRS> AllowAll </Limit> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous> It took a while to get it all together, but it's been working the way I want it to for almost a year now so that my clients can send me large databases (up to a gigabyte at times) without them being exposed to public view, while anyone can browse the public directory. You can see it at ftp://jimkyle.dns2go.com/ and feel free to browse. |
All times are GMT -5. The time now is 07:21 PM. |