GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unix file/directory permissions
Operating System - HP-UX
1844385
Members
3390
Online
110232
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
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
09-14-2000 06:48 AM
09-14-2000 06:48 AM
Unix file/directory permissions
I would like to create a directory that allows any user to add, change, and delete files from subdiretories under the directory. I do not want to use umask if possible - is there a way to do this with the sticky bit? I would prefer directories and files to be created with rwxrwxrwx (everyone having full access).
Thanks
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2000 06:54 AM
09-14-2000 06:54 AM
Re: Unix file/directory permissions
Carey:
Take a look at document #A4770206 ( Prevent removal of files by non-owner; set sticky bit on dir ). I think this defines and meets your objectives.
...JRF...
Take a look at document #A4770206 ( Prevent removal of files by non-owner; set sticky bit on dir ). I think this defines and meets your objectives.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2000 10:19 AM
09-14-2000 10:19 AM
Re: Unix file/directory permissions
What you need to do is set permissions to 1777 on the directory. I.e.
> mkdir /users_stuff
> chmod 1777 /users_stuff
> ll /users_stuff
drwxrwxrwt 2 root other 117 Sep 14 14:22 ./users_stuff
This is the sticky bit which allows users to create and delete files in this directory, but other users can not delete their files. In all UNICES other than HP-UX, this is the default permissions for /tmp, /var/tmp, and /usr/tmp. TAKE NOTES HP!
> mkdir /users_stuff
> chmod 1777 /users_stuff
> ll /users_stuff
drwxrwxrwt 2 root other 117 Sep 14 14:22 ./users_stuff
This is the sticky bit which allows users to create and delete files in this directory, but other users can not delete their files. In all UNICES other than HP-UX, this is the default permissions for /tmp, /var/tmp, and /usr/tmp. TAKE NOTES HP!
Microsoft. When do you want a virus today?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2000 11:32 PM
09-14-2000 11:32 PM
Re: Unix file/directory permissions
A directory with sticky bit set means that only the file owner and the superuser may remove files from that directory. Other users don't have the rigth do do this regardless the dir. permissions.
If a directory is writable and has the sticky bit set, files within that dir. can be removed or renamed only if one or more of the following is true:
The user owns the file
the user owns the dir
the file is writable by the user
the user is root
About the creation of files and subdirectories there are not problems!
I hope this helps
Federico
If a directory is writable and has the sticky bit set, files within that dir. can be removed or renamed only if one or more of the following is true:
The user owns the file
the user owns the dir
the file is writable by the user
the user is root
About the creation of files and subdirectories there are not problems!
I hope this helps
Federico
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