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 permissions only to files, not directories....? narrok UNIX for Dummies Questions & Answers 3 12-13-2008 03:55 AM
How to change the permissions of ksh? ponnuvel UNIX for Advanced & Expert Users 3 04-15-2008 04:17 AM
Change permissions of /var/log/messages anindra UNIX for Dummies Questions & Answers 3 11-05-2007 12:53 PM
need command to change permissions calredd UNIX for Dummies Questions & Answers 1 04-28-2007 01:53 PM
Setting Default Permissions for Files robbieg UNIX for Dummies Questions & Answers 1 11-24-2004 05:26 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-30-2006
rdgblues rdgblues is offline
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
  #2 (permalink)  
Old 08-30-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0