Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP root/subdirectory permissions?

Status
Not open for further replies.

chipk

IS-IT--Management
Mar 23, 2006
1,226
US
Hi, here's my question/problem:

I have an ftp site where everyone uploads to a single directory, but they only have write, not read permissions, so that they cannot see anything else while uploading (it was not practical to create accounts for each user because of the frequency of changes, etc.) I have a single internal user who has full access to the top level ftp folder. If, however, the "upload" user creates a subdirectory, the "internal" user does not have permissions to modify this folder after downloading the data (i.e. to delete it).

What I need to know how to do is to make any subdirectories inherit the top-level folder permissions when they are created. Is this possible?
 
I tried to do that, but maybe I missed something. I'll check it out again. The "upload" user was the owner and had rwx permissions, the "group" had r-x and "others" had r-x as well.

I was looking elsewhere and thought perhaps if I redo the permissions using "chmod -R" for recursive, that would fix this problem.
 
folders require execute perm ("x") to function correctly.

I recommend you apply the desired umask

So that future folders are perm'd correctly.

Whether you want to clean up the current folders with "chmod -R" is up to you.

I think you'd want to consider starting with a 'find' to be selective and then modify just the folders...

find /your/ftpfolder/root -type d -exec chmod +x \'{}\';

or chmod 774 or whatever...

Should work...

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top