This link has been bookmarked by 10 people . It was first bookmarked on 11 Oct 2007, by someone privately.
-
21 Sep 16
pleiadian53"When applied to an entire directory, however, the sticky bit has a different meaning. In that case, a user can only change files in this directory when she is the user owner of the file or when the file has appropriate permissions. This feature is used on directories like /var/tmp, that have to be accessible for everyone, but where it is not appropriate for users to change or delete each other's data. The sticky bit is indicated by a t at the end of the file permission field:
mark:~> ls -ld /var/tmp
drwxrwxrwt 19 root root 8192 Jan 16 10:37 /var/tmp/"-
Files without permissions don't exist on Linux. The standard file permission is determined by the mask for new file creation. The value of this mask can be displayed using the umask command:
bert:~> umask 0002
-
The standard file permission is determined by the mask for new file creation. The value of this mask can be displayed using the umask command:
bert:~> umask 0002
-
When applied to an entire directory, however, the sticky bit has a different meaning. In that case, a user can only change files in this directory when she is the user owner of the file or when the file has appropriate permissions. This feature is used on directories like /var/tmp, that have to be accessible for everyone, but where it is not appropriate for users to change or delete each other's data. The sticky bit is indicated by a t at the end of the file permission field:
mark:~> ls -ld /var/tmp drwxrwxrwt 19 root root 8192 Jan 16 10:37 /var/tmp/
-
comments like, "It worked yesterday," and "When I run this as root it works," are most likely caused by the wrong file permissions.
-
chmod 500 directory To protect yourself from accidentally removing, renaming or moving files from this directory.
-
-
15 Sep 11
-
23 Jan 10
-
The + and - operators are used to grant or deny a given right to a given group
-
rimary group is the one that you get assigned from the /etc/passwd file. The fourth field of this file holds users' primary group ID, which is looked up in the /etc/group file.
-
-
09 Mar 09
-
21 Feb 07
Chu Yeow CheahAccess rights in Linux. Remember to use newgrp to change the active group.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.