Skip to content

Chmod command

chmod command to change file / folder permissions
chmod 775 < foldername>
! geen extra spaties

list of the most common file permissions:
Value Numeric Value Explanation
-rw------- 600 Owner can read and write. Group and others have no permission.
-rw-r--r-- 644 Owner and read and write. Group and others have read only rights.
-rw-rw-rw- 666 Owner, group and others can read and write.
-rwx------ 700 Owner can read, write and execute. Group and others have no permission.
-rwx--x--x 711 Owner can read, write and execute. Group and others can execute.
-rwxr-xr-x 755 Owner can read, write and execute. Group and others can read and execute.
-rwxrwxrwx 777 Owner, group and others can read, write and execute.
wm :
-rwxrwxr-x 775 Owner & group can read, write and execute.Others can read and execute.

Command ‘chmod’ not found issue

Command 'chmod' not found, but can be installed with:

sudo apt install coreutils
=> coreutils is already the newest version (8.30-3ubuntu2).
chmod  775 < foldername>
locatie opgezocht met which => /usr/bin
/usr/bin is in patch met echo $PATH
executed in /usr/bin => idem
==probleem is de extra space !==
chmod  775 < foldername> => sudo chmod 775 /mnt/temp
tevens sudo required since /mnt is root owned

permissions

https://www.networkworld.com/article/3002286/what-can-you-do-when-you-cant-chmod-chmod.html
Fix permissions using setfacl
Using the setfacl (set file ACL) command, we set owner permissions.

Change permissions with a C program
chmod command just uses system calls to change permissions