t: The sticky bit?

Tråden skapades och har fått 2 svar. Det senaste inlägget skrevs .
1
  • Medlem
  • International user
  • 2004-04-24 21:20

Vad är/innebär/betyder t?

Den delade mappen 'Shared' i '/Users' har 't':

drwxrwxrwt   6 root      wheel         204  8 Jan 23:08 Shared
  • Oregistrerad
  • 2004-04-24 21:36

t betyder att katalogen är "sticky". Vad sticky innebär står under:
%man sticky

Där du hittar detta citat:
"A directory whose `sticky bit' is set becomes an append-only directory, or, more accurately, a directory in which the deletion of files is restricted. A file in a sticky directory may only be removed or renamed by a user if the user has write permission for the directory and the user is the owner of the file, the owner of the directory, or the super-user. This feature is usefully applied to directories such as /tmp which must be publicly writable but should deny users the license to arbitrarily delete or rename each others' files."

  • Medlem
  • International user
  • 2004-04-24 21:37

Jaha, ja:

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.

Källa

1
Bevaka tråden