Simultaneos multiple user access
Access to files is granted via permissions
Group is a collection of users
Everyone else 'other'
aaron@kratos:~/tmp$ ls -l
-rw-r--r-- 1 aaron web 15 Sep 20 19:39 bar.html
-rwxr-xr-- 1 aaron aaron 510 Sep 20 19:39 foo.sh
drwxr-xr-x 2 aaron admin 4096 Sep 20 19:39 stuff
-rw-r--r-- 1 aaron web 15 Sep 20 19:39 bar.html
- rw- r-- r--
(type) (user) (group) (other)
Type:
-rw-r--r-- 1 aaron web 15 Sep 20 19:39 bar.html
- rw- r-- r--
(type) (user) (group) (other)
Access:
-rw-r--r-- 1 aaron web 15 Sep 20 19:39 bar.html
1 aaron web
(links) (user) (group)
Links:
Owners:
-rw-r--r-- 1 aaron web 15 Sep 20 19:39 bar.html
15 Sep 20 19:39 bar.html
(byte size) (modified date) (filename)
Size:
Date:
Filename:
chmod:
chown:
chgrp:
chmod:
-rw-r--r-- 1 aaron aaron 15 Sep 20 19:39 file1.txt
Demonstration
chmod:
read (4), write (2), execute (1), none (0)
-rw-r--r-- 1 aaron aaron 15 Sep 20 19:39 file1.txt
Demonstration
chown:
-rw-r--r-- 1 aaron aaron 15 Sep 20 19:39 file1.txt
chown bob file1.txt
-rw-r--r-- 1 bob aaron 15 Sep 20 19:39 file1.txt
chgrp:
-rw-r--r-- 1 aaron aaron 15 Sep 20 19:39 file1.txt
chgrp web file1.txt
-rw-r--r-- 1 aaron web 15 Sep 20 19:39 file1.txt
----rwxrwx 1 aaron aaron 15 Sep 20 19:39 file1.txt
Demonstration
aaron@kratos:~$ ls -l
-------r-- 1 aaron aaron 5 Sep 20 19:39 file1.txt
aaron@kratos:~$ ls -l /
...
drwxrwxrwt 16 root root 4096 Sep 20 19:39 tmp
...
4th permission:
Demonstration
4th permission:
root@kratos:/home/aaron/tmp# ls -l
drwxr-xr-x 2 root root 4096 Sep 20 19:39 foo
root@kratos:/home/aaron/tmp# chmod 2777 foo
root@kratos:/home/aaron/tmp# ls -l
drwxrsxrwx 2 root root 4096 Sep 20 19:39 foo
root@kratos:/home/aaron/tmp# su aaron
aaron@kratos:~/tmp$ touch file.txt
aaron@kratos:~/tmp$ ls -l
-rw-r--r-- 1 aaron root 0 Sep 20 19:22 file.txt
4th permission:
root@kratos:/home/aaron/tmp# ls -l
drwxr-xr-x 2 root root 4096 Sep 20 19:39 foo
root@kratos:/home/aaron/tmp# chmod 4777 foo
root@kratos:/home/aaron/tmp# ls -l
drsxrwxrwx 2 root root 4096 Sep 20 19:39 foo
root@kratos:/home/aaron/tmp# su aaron
aaron@kratos:~/tmp$ touch file.txt
aaron@kratos:~/tmp$ ls -l
-rw-r--r-- 1 aaron aaron 0 Sep 20 19:22 file.txt
User file creation mode mask
Affects default permissions on new files/directories
Acts as a filter rather than a setter
Calculated using chmod - umask = value
aaron@kratos:~$ mkdir foo
aaron@kratos:~$ touch bar
aaron@kratos:~$ ls -l
-rw-r--r-- 1 aaron aaron 0 Sep 20 19:22 bar
drw-r-xr-x 2 aaron aaron 4096 Sep 20 19:22 foo
aaron@kratos:~$ mkdir foo
aaron@kratos:~$ touch bar
aaron@kratos:~$ ls -l
-rw-----w- 1 aaron aaron 0 Sep 20 19:22 bar
drw-----wx 2 aaron aaron 4096 Sep 20 19:22 foo
Any questions, thoughts, comments or rude remarks?
Aaron Toponce