List set and change standard permissions
chgrp - change group Change group ownerships
chmod - change mode Change modification permissions
chown - change ownership Change ownerships of users
When we do ls -l
we get this:
Interpretation: Here we see the folder "Downloads" is owned by user "user" which has the read / write permissions to it and the super user "sudo" too which has the admin privelages not to mention. Other than the user their is also a family attribiute next to it which is a group which as can be seen has two permissions of reading it and executing it.
Changing the group of the file it belongs to we can use the command chgrp
:
chgrp
:Output:
To see which a current user belongs to we can use:
Output:
Changing owenership of file/directory we use chown
:
chown
:PreviousManaging GPG keys on Linux for better security:NextSetup static ip on ubuntu-server 22.04 lts
Last updated