- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sticky Bit
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
07-29-2002 02:14 PM
07-29-2002 02:14 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 02:34 PM
07-29-2002 02:34 PM
Re: Sticky Bit
I did same as you
login user1
mkdir /tmp/test
chmod 1777 /tmp/test
touch /tmp/test/sample
exit
login user2
mv /tmp/test/sample /tmp/test/newname
mv: cannot move `sample' to `newname': Not owner
Check that the second user you logged in as does not have the same UID number as the first user.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 03:21 PM
07-29-2002 03:21 PM
Re: Sticky Bit
I've done this before:
[foo@melhpux1] /home/foo-> cd /tmp/test
[foo@melhpux1] /tmp/test-> ll
total 0
-rw-rw---- 1 sup2000 group 0 Jul 30 09:24 aaa
[foo@melhpux1] /tmp/test-> more aaa
[foo@melhpux1] /tmp/test-> echo "hi" > aaa
[foo@melhpux1] /tmp/test-> more aaa
hi
[foo@melhpux1] /tmp/test-> rm aaa
rm: aaa not removed. Permission denied
[foo@melhpux1] /tmp/test-> cd ..
[foo@melhpux1] /tmp-> ll | grep test
drwxr-xr-t 2 root group 96 Jul 30 09:24 test
[foo@melhpux1] /tmp->
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 11:44 PM
07-29-2002 11:44 PM
Solutioni think the problem is with your umask. if this is set so that files are created with group write permissions (eg 02) then the sticky bit will be ignored and any user in the group can remove the file. Or if the file has global write any user regardless of group can remove it.
The sticky bit is only useful for files where user has full write to the directory but read only on files in it. without the sticky bit set the user can override the individual file permissions and remove these. But if sticky bit is set & files are read only then the file permissions cannot be overridden.
Suggest you set umask 022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 11:19 AM
07-30-2002 11:19 AM
Re: Sticky Bit
Depending on which 'x' in '11x' that may be
relevant.