This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:file_perm [2021/08/17 17:50] manu [ACL] |
linux:file_perm [2021/08/17 18:12] (current) manu |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Files/directories permissions and ACL ====== | ====== Files/directories permissions and ACL ====== | ||
| + | |||
| + | Do not forget that all permissions are related to user ID and group ID, not name. | ||
| ===== Standard file permissions ===== | ===== Standard file permissions ===== | ||
| Line 16: | Line 18: | ||
| manu@opensuse:~> ls -l test* | manu@opensuse:~> ls -l test* | ||
| -rw-r--r-- 1 manu users 0 Aug 17 12:01 test1 | -rw-r--r-- 1 manu users 0 Aug 17 12:01 test1 | ||
| + | </cli> | ||
| + | |||
| + | 3 commands that can be used to change permissions... | ||
| + | <cli> | ||
| + | chmod 644 <file> | ||
| + | chmod {ugo}{+,-,=}{rwx} <file> | ||
| + | chmod <user>{.:}<group> <file> | ||
| + | chgoup <group> <file> | ||
| </cli> | </cli> | ||