![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to change permissions in a certain directory? | praveen_indramo | UNIX for Dummies Questions & Answers | 1 | 03-25-2008 09:07 AM |
| permissions of a directory | smehra | UNIX for Dummies Questions & Answers | 3 | 06-04-2006 07:32 AM |
| determine owner directory permissions from within the directory | Sniper Pixie | Shell Programming and Scripting | 4 | 03-07-2006 02:06 PM |
| default directory permissions | Thumpasorus | UNIX for Dummies Questions & Answers | 3 | 09-13-2002 05:08 AM |
| directory permissions and CHMOD | ncarmstrong | UNIX for Dummies Questions & Answers | 3 | 08-14-2002 10:00 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Directory Default Permissions
Hi,
I have a directory with files and sub-directories. Users write files to it by using copy/create/tar/ftp etc. I want this directory to have default permissions of 775 (for its files and sub-dir as well). I tried the below 2 ways but they are not upto my exact requirement so i need a better way of doing it. 1. system-wide umask: it is working only when a file is created (not copied/ftpd etc.) in that directory. 2. CRON job for setting permissions: As there're millions of files, resetting permissions periodically (using cron) found to be impacting on server performance. I tried applying chmod only on the recent files but still it's taking long enough to keep server loaded. Any solution would highly be appreciated. TIA Prvn |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
Also, do you about the SUID and SGID bits for directories? These mean any subdirectories are created with the parent directories group/user. |
|
#3
|
|||
|
|||
|
Thanks Porter for your response.
My Exact requirement is to have each and every file/directory being copied/created/ftped/tared (or by any means) to a specific directory, must get 775 permissions automatically. I don't have files/directories set with SUID/SGID. Regards, Prvn |
|
#4
|
|||
|
|||
|
Do you have a fall back position if that is not possible?
|
|
#5
|
|||
|
|||
|
I'm not sure if i could understand your question.
Right now, i'm managing with periodic chmod on recent files which is considered inefficient. If there's no better solution to my requirement, i would go with this only. |
|||
| Google The UNIX and Linux Forums |