- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: Inherit group from parent directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 06:52 AM
тАО06-04-2004 06:52 AM
Inherit group from parent directory
drwsrwxrwx 954 root system 40960 Jun 4 13:26 /wrk
If a user creates a file or directory directly under /wrk, its owner (UID) is the user's uid but the group name (gid) is still system:
-rw------- 1 me system 0 Jun 4 13:27 test.txt
How do I set up the permissions on /wrk so that my group name is used instead of system?
-rw------- 1 me grp1 0 Jun 4 13:27 test.txt
The reason I ask is because our users archive their files onto a storage array. We use the group name to determine how much space each group is using. As it is now, if a user copies his/uer files to the storage array the group name is still system.
I know we can tell the users to do a chgrp on new directories under /wrk but we would have to constantly police the users to make sure the policy is followed. There must be an easier way.
Any info will be appreciated.
Thanks,
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 08:45 AM
тАО06-04-2004 08:45 AM
Re: Inherit group from parent directory
there is one problem. You have only one group, you set /wrk to but probably many groups, the users belong to.
You might try this from time to time.
find /wrk -user "userx" -exec chgrp grp1 "{}" ";"
hth,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 08:53 AM
тАО06-04-2004 08:53 AM
Re: Inherit group from parent directory
But here is another solution, if /wrk is a filesystem, mount it with "nogrpid" option.
eg:
# mount -o nogrpid /wrk
man mount for more info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 09:25 AM
тАО06-04-2004 09:25 AM
Re: Inherit group from parent directory
But why not learn some basics and use vfs: sys_v_mode=1 (have a look into the admin guide, section BDS vs. SYSV behavior) or still use ACL's to solve your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 09:38 AM
тАО06-04-2004 09:38 AM
Re: Inherit group from parent directory
According to man pages, nogrpid works for UFS and AdvFS.
I just tested it too, it works. :-)
regds,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 10:20 AM
тАО06-04-2004 10:20 AM
Re: Inherit group from parent directory
Thanks,
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 09:22 PM
тАО06-04-2004 09:22 PM
Re: Inherit group from parent directory
Ralf was referring to nfs filesystem.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2004 09:01 AM
тАО06-07-2004 09:01 AM
Re: Inherit group from parent directory
if you do not have too MANY groups, how about create file set for each group under wrk_domain, then it's easy to tell how much space is used for each file set.
just a idea. also you can set limit too.
Cheers !
YJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2004 10:01 AM
тАО06-07-2004 10:01 AM
Re: Inherit group from parent directory
Would appreciate if you could assign points to the replies as a way of thanking and indicating how the responses helped you in resolving the problem.
thanks,
Abdul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2004 08:18 AM
тАО06-10-2004 08:18 AM
Re: Inherit group from parent directory
Thanks,
Steven