setuid (u+s):4 Applies to executable files. Users executing the file run with the file owner's permissions. Indicated by an s in the user’s execute position (rws). setgid (g+s):2 Applies to executable files and directories. For executables: Users executing the file run with the file's group permissions. For directories: New files inherit the directory's group. Indicated by an s in the group’s execute position (r-s). Sticky Bit (+t):1 Applies to directories. Only file owners, directory owners, or root can delete or rename files within the directory. Indicated by a t in the others’ execute position (rwt). For example /tmp directory where multiple users have their files and folders but no other user shall be able to delete folder or file from another user.
Great series! Could anybody explain why on ~ 6:00 for file5 we had permissions like: - rw- rw- r - - and after umask 0424 it became: - -w - r - - - w - We removed 'r' permission on others, but where does this 'w' permission on others comes from? we didn't have it previously
I don't think suggesting a decimal converter to read the binary values is especially desirable :D maybe just tell the viewer to learn elementary binary
Full Playlist - th-cam.com/video/__iKSnQXe_o/w-d-xo.html
Links
www.redhat.com/sysadmin/suid-sgid-sticky-bit
You can specify with -d flag that you intended to get info about the folder and not its content, ls -ld files
Helped out a lot! I'm currently in a linux for jobs course and this was extremely insightful!
setuid (u+s):4
Applies to executable files.
Users executing the file run with the file owner's permissions.
Indicated by an s in the user’s execute position (rws).
setgid (g+s):2
Applies to executable files and directories.
For executables: Users executing the file run with the file's group permissions.
For directories: New files inherit the directory's group.
Indicated by an s in the group’s execute position (r-s).
Sticky Bit (+t):1
Applies to directories.
Only file owners, directory owners, or root can delete or rename files within the directory.
Indicated by a t in the others’ execute position (rwt).
For example /tmp directory where multiple users have their files and folders but no other user shall be able to delete folder or file from another user.
Thanks, man. This really helped me!
As always, great work and very helpful
Very helpful video 👍👍
Great series!
Could anybody explain why on ~ 6:00
for file5 we had permissions like:
- rw- rw- r - -
and after umask 0424 it became:
- -w - r - - - w -
We removed 'r' permission on others, but where does this 'w'
permission on others comes from? we didn't have it previously
I don't think suggesting a decimal converter to read the binary values is especially desirable :D maybe just tell the viewer to learn elementary binary
Was very helpful
Thank you
thanks