The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to change the permissions of ksh? ponnuvel UNIX for Advanced & Expert Users 3 04-15-2008 12:17 AM
Change permissions of /var/log/messages anindra UNIX for Dummies Questions & Answers 3 11-05-2007 09:53 AM
how to change permissions only to files, not directories....? narrok UNIX for Dummies Questions & Answers 1 06-04-2007 03:56 PM
need command to change permissions calredd UNIX for Dummies Questions & Answers 1 04-28-2007 09:53 AM
Setting Default Permissions for Files robbieg UNIX for Dummies Questions & Answers 1 11-24-2004 02:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2006
Registered User
 

Join Date: Aug 2006
Posts: 1
How to change default permissions on new files

Hello, I would like to know if there was any way I can change the default permissions for new files being generated within a certain directory.

Would I need to have the same permissions set at the directory level as for the files being generated in it.

Regards,
Rdgblues
Reply With Quote
Forum Sponsor
  #2  
Old 08-30-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
I don't think that you can do propagation of directory permissions to file permissions... you can manage your file permissions by using umask. You can search on the site for several examples of umask.

You can make the group ownership of files created in a directory match the group owner of the directory by having the setgid bit set on the directory.
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 12:08 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