| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| fishsponge |
Posted: May 19 2003, 12:13 PM
|
||||
|
Administrator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 679 Member No.: 1 Joined: 13-February 03 |
Courtesy of Linux.OReillyNet.com
http://linux.oreillynet.com/pub/a/linux/lpt/22_06.html Protecting Files with the Sticky Bit by Jerry Peek 01/27/2000 Unix directory access permissions say that if a user has write permission on a directory, she can rename or remove files there–even files that don't belong to her. Many newer versions of Unix have a way to stop that. The owner of a directory can set its sticky bit. The only people who can rename or remove any file in that directory are the file's owner, the directory's owner, and the superuser. Here's an example: the user jerry makes a world-writable directory and sets the sticky bit (shown as t here):
Other people create files in it. When jennifer tries to remove a file that belongs to ellie, she can't:
|
||||
![]() |
![]() ![]() ![]() |