The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-18-2007
Registered User
 

Join Date: Jul 2007
Posts: 110
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
Reply With Quote
Forum Sponsor
  #2  
Old 10-18-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by prvnrk View Post
but they are not upto my exact requirement so i need a better way of doing it.
It would help if you posted your exact requirements, otherwise we would just suggest the mechanisms you have already mentioned.

Also, do you about the SUID and SGID bits for directories? These mean any subdirectories are created with the parent directories group/user.
Reply With Quote
  #3  
Old 10-18-2007
Registered User
 

Join Date: Jul 2007
Posts: 110
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
Reply With Quote
  #4  
Old 10-18-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by prvnrk View Post
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.
Do you have a fall back position if that is not possible?
Reply With Quote
  #5  
Old 10-18-2007
Registered User
 

Join Date: Jul 2007
Posts: 110
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0