The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

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 04-28-2008
april april is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 9
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.
  #2 (permalink)  
Old 04-28-2008
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
It is not possible a uid from a directory. A new file will always have the uid of the process which created it.
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:19 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