Which of the following permissions are set on the /tmp/ directory?
Which of the following permissions are set on the /tmp/ directory?
The permissions set on the /tmp/ directory allow all users to read, write, and execute files within the directory (rwxrwx), but only the owner of a file or the root user can delete or rename the files they have created within the directory (denoted by the sticky bit 't'). This is essential for maintaining a secure and shared temporary space without allowing users to interfere with each other's files.
r=read, w=write, x=execute, t=?
"t" means that the file is sticky, which means the file can be deleted only by the owner/root.
T, I guess stands for temporaly
It's full control but just to the files that made by me and not by other users.
Structure of the permission string: rwx | rwx | rwt (User) (Group) (Others) Breakdown of permissions: r (read): Allows listing the contents of the directory w (write): Allows creating, deleting, or renaming files in the directory x (execute): Allows entering the directory and accessing its contents t (sticky bit): Special permission for the "others" category Meaning for each category: User (owner): rwx (full permissions) Group: rwx (full permissions) Others: rwt (read, write, execute, plus sticky bit) The sticky bit (t): This is the key feature of /tmp/ permissions It allows users to create files, but only delete or modify their own files Prevents users from deleting or renaming each other's files Crucial for a shared temporary directory like /tmp/ Why these permissions are used for /tmp/: Allows all users to create temporary files (/tmp/ is world-writable) Provides security by preventing users from interfering with each other's files Maintains the purpose of /tmp/ as a shared, temporary storage space
correct. they sticky bit
A. rwxrwxrwt
Answer is A
drwxrwxrwt. 13 root root 260 1 Jan 17.56 tmp
a is the answer
ok linux noob here this was confusing because i thought it was /tmp/directory. it is just /tmp/. input command ls -l to find permissions. *facepalm*