Przejdลบ do treล›ci

๐Ÿ” Permissions

Linux permissions control who can read, write and execute files.


๐Ÿงฉ Permission Types

1
2
3
r = read
w = write
x = execute

๐Ÿ”ง Viewing Permissions

1
ls -l

Example:

1
-rw-r--r-- 1 user user 1200 file.txt

๐Ÿ”ง Changing Permissions

1
2
chmod 644 file.txt
chmod 755 script.sh

๐Ÿ”ง Changing Ownership

1
chown user:group file.txt

๐Ÿšจ Tips

  • Never give 777
  • Scripts need chmod +x
  • Directories need x to enter