Special directory bits in Linux add group owner inheritance as well as the sticky bit which keeps users from deleting or renaming files that don't belong to them. SGID bit is responsible for creating the only inheritance in standard Linux permissions. Any file created inside an SGID directory will inherit the group owner of the parent directory.
- [Instructor] SGID and Sticky…are special bits for directories.…In a terminal, let's create a directory…in /home for this exercise using mkdir.…Type in cd /home and hit Enter.…Now type in sudo mkdir accounting and hit Enter again.…Type in your Password and hit Enter a third time.…Let's verify this by typing in ls -l,…and we can see that the accounting directory exists,…and is owned by the root user in the root group.…
The reason it's owned by the root user in the root group,…is because we elevated privileges when we created it.…The permissions for the user owner are rwx,…the group owner is rx and for other is rx.…Now let's create a group called Accounting.…Type in sudo groupadd accounting and hit Enter.…Now let's change the ownership of our accounting directory…to the accounting group.…Type in sudo chown, which is change owner,…space :accounting, that's the accounting group,…space accounting.…
So you should have sudo chown…space :accounting accounting, hit Enter.…Let's verify this with ls -l.…We can see that the accounting directory…
- Define file Access Control Lists.
- Describe what extended globs add to Linux pattern matching.
- State why file system recovery tools are so important for Linux users.
- Recall what execute permissions on a directory allows.
- Cite the maximum allowed default permissions on a file in Linux.
- List some of the advantages of ACLs over standard Unix permissions.
Skill Level Intermediate
Linux: Desktops and Remote Accesswith Grant McWilliams1h 44m Intermediate
1. Linux Files
2. Manipulate Files
3. Standard Unix Permissions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.