moving-files-slides
moving-files-slides
Mateo Prigl
SOFTWARE DEVELOPER
File Permissions
OS
File Permissions
Execute
Execute (x) (executable file)
Enter inside (cd into it)
Changing Permissions
File Permissions (symbolic mode)
u user
= set permissions
g group
- remove permission
a all
Changing Permissions
File Permissions (absolute/numeric mode)
4 2 1
r w x
1 0 0 1 --x
chmod 2 0 1 0 -w- filename
4 1 0 0 r--
1+2=3 0 1 1 -wx
Changing Permissions
File Permissions (absolute/numeric mode)
rwxr–xr-x
4 2 1 4 1 4 1
chmod 7 5 5 filename
111 101 101
Demo
666 777
rw-rw-rw- rwxrwxrwx
Default File Permissions
Default
6 6 6 rw-rw-rw-
permissions
Default
7 7 7 rwxrwxrwx
permissions
A I E
Read permission Write permission Execute permission
Demo
Special file permissions
- SUID
- SGID
- Sticky bit
Special Permissions in Numerical Mode
s s t
Special Permissions Representation
r ws rws rwt
Special File Permissions
Run file as a
All of the files inside of it will
SGID (s or S) member of the
belong to the directory group
file group
Prevents files inside of it from
Sticky bit (t or T) being removed by anyone but
the owner of that file
Demo