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 add permission of directory to a group ahjiefreak UNIX for Dummies Questions & Answers 2 02-29-2008 12:20 AM
permission, owner and group pascalbout Shell Programming and Scripting 2 01-14-2006 08:47 AM
group permission thumper UNIX for Dummies Questions & Answers 6 02-17-2005 01:03 PM
Group permission not working bbauerle AIX 13 05-10-2004 05:41 AM
how to define permission of unix group mncapara UNIX for Dummies Questions & Answers 3 10-16-2002 06:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-27-2008
Registered User
 

Join Date: Apr 2007
Posts: 7
Inherit Group File Permission

In our file system, the SGID for a directory is set right now. Any new files created in this directory will automatically be assigned the same group from the parent directory.

Is there a way to inherit the file permission from the parent directory as well? The OS is Solaris 2.8.

Example:
Parent directory is:
drwxrwsr-x 2 user1 group1 /dir1/happy

If I create a new file or directory, ie. camper, inside the happy directory, the group will be group1 regardless of my default group but I also want it to have the same file permission as happy.

-rwxrwsr-x 2 user2 group1 /dir1/happy/camper

Is it possible? If it is, how?

Please help.
Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 04-28-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
It is not possible a uid from a directory. A new file will always have the uid of the process which created it.
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 07:44 PM.


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