HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file mode
Operating System - HP-UX
1833017
Members
2368
Online
110048
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-08-2004 01:41 PM
06-08-2004 01:41 PM
We have a share directory eg . /home/edp/temp , the user ( eg. userA ) will generate the files to this directory and other user ( eg. userB ) need to update the files in this directory , but the mode of the file is 644 when the userA create it , so userB can't update it , userA and userB is not same user group , except change the umask (umask 000) and cron job , is it possible to change all the files in the directory /home/edp/temp is 666 once the userA create it ? thx.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 01:58 PM
06-08-2004 01:58 PM
Re: file mode
What version of OS are you using . If you are 11i and use JFS version 4 its pretty easy to use ACL's for these kind of file/directory permission .
I did not work with ACL on other JFS versions except 4 , I am assuming it should be easier too .
Basically getacl and setcl are the commands you need to run against the file name with proper user/group permissions . do man on them for more details and get the ACL maulas at www.docs.hp.com .
I did not work with ACL on other JFS versions except 4 , I am assuming it should be easier too .
Basically getacl and setcl are the commands you need to run against the file name with proper user/group permissions . do man on them for more details and get the ACL maulas at www.docs.hp.com .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 05:02 PM
06-08-2004 05:02 PM
Re: file mode
Hi,
In addition to the above,
You can also try using a sticky bit for that directory.
#chmod 1644 /home/edp/temp
sticky bit set for a directory will make that directory as sharable.
Regards,
In addition to the above,
You can also try using a sticky bit for that directory.
#chmod 1644 /home/edp/temp
sticky bit set for a directory will make that directory as sharable.
Regards,
I'll sleep when i am dead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 05:43 PM
06-08-2004 05:43 PM
Solution
AFAIK the sticky bit will make files only removable by the owner or root in a directory (see /tmp).
The best solution I can think of right now: put both users in a group, change the mode of the directory to 2770 or 2775 (meaning a setgid for the directory) and the directory of course of the same group as both users are in. Set the umask to 002 for both users, meaning files are created user and group writable.
If you want userB to only be able to change the files, not create or rename files in the dir, you might try 2755 as mode for the directory, because he doesn't need write access to the directory to change the contents of files, just write access to the files which he gets due to the setgid on the directory and the umask of userA.
The best solution I can think of right now: put both users in a group, change the mode of the directory to 2770 or 2775 (meaning a setgid for the directory) and the directory of course of the same group as both users are in. Set the umask to 002 for both users, meaning files are created user and group writable.
If you want userB to only be able to change the files, not create or rename files in the dir, you might try 2755 as mode for the directory, because he doesn't need write access to the directory to change the contents of files, just write access to the files which he gets due to the setgid on the directory and the umask of userA.
Every problem has at least one solution. Only some solutions are harder to find.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP