- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Assign a directory for two different users
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
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
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
05-28-2001 02:10 AM
05-28-2001 02:10 AM
Problem:
I have two users, belonging to one group.
I want the two users to read and write in a directory and their group only to read in this directory. Is this possible anyway?
Thanks
Bettina
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 03:35 AM
05-28-2001 03:35 AM
Re: Assign a directory for two different users
Yes, if I understand your question, it is possible. You will need to set acl's (Access Control Lists) for this directory. Acl's allow more explicit control for file/directory permissions. The bad news is that acl's are non-standard UNIX and most backups do not preserve the acl information so that if you have to do a restore, you must re-assert the acl data. You can keep a file with the acl statements that can be backed up so that you can run a script to reset the acl data. You can man getacl and setacl for details.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 03:41 AM
05-28-2001 03:41 AM
Re: Assign a directory for two different users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 04:09 AM
05-28-2001 04:09 AM
Re: Assign a directory for two different users
Can you give me an example ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 04:36 AM
05-28-2001 04:36 AM
Re: Assign a directory for two different users
The examples in setacl are fairly clear but I suggest you create a play directory to test this.
For our example I'll use usera who is a member of groupa as the directory (dira) owner.
We set the permissions of dira to 750.
chown -R usera:groupa dira
chmod 750 dira.
Now everyone who is a member of groupa can read the directory but only usera can create files.
Now lets set acl's for userb (who is also a member of groupa).
setacl -m user:userb:7 dira
Now userb can also create files in dira.
You can also do the same operations on files.
Hope this gets you started, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 06:09 AM
05-28-2001 06:09 AM
Re: Assign a directory for two different users
If I try the command I receive the message
sh: setacl: not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 06:21 AM
05-28-2001 06:21 AM
SolutionYou need OnlineJFS Version 3.3. Vrsn 3.1 does not support it - this is one of the new features. 3.3 is only available on 11.0 or 11i; if you are running 10.20 then forget it.
If you do not have OnlineJFS you could also do this in an HFS filesystem in a very similar way using chacl, lsacl, etc. commands.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 10:46 PM
05-28-2001 10:46 PM
Re: Assign a directory for two different users
Bettina