Link to home
Start Free TrialLog in
Avatar of jkipp_66
jkipp_66

asked on

FTP Permissioning

I am running an FTP server on RH6.  I have 2 questions.
I created a directory called upload. I have permissioned the Dir so that everyone has 'rwx' access (chmod 777).  However when I ftp into it I still can not upload files to that dir. It tells me upload access is denied.
Assuming I can get that working, then my second question would be:

How would I give just one user write or upload permission to
the upload dir on my ftp server (/home/ftp/upload)? Would have to make him a new group and do a chgrp on the directory??

Thanks
ASKER CERTIFIED SOLUTION
Avatar of kiffney
kiffney

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jlevie
jlevie

Actually wu-ftp doesn't chroot to the user's dir. Ordinary users (as listed in the passwd file) have normal rights with respect to uploading/downloading. If they can read/write to a dir while directly logged in they can upload/download to those dirs from ftp.

When you set up anonymous ftp, wu-ftp does chroot to the anon ftp dir.

As noted /etc/ftpaccess can be used to limit/grant ftp privs. You can see what can be done by looking at "man ftpaccess"

For fine-tuned config, You'd better off with proftpd. It has Apache-like directory directives to control permission. Also, users will access the sites with the same rights as OS user (so, you can tweak UNIX-style file/directory permission to your like), and it is easy to turn the chroot on for all users, one single directive in the main config file: DefaultRoot ~.
www.proftpd.org