Saturday, September 24, 2022

File permissions changing on Kubuntu

sudo su - temporarily become the superuser

chmod - modify file access rights

chown - change file ownership

chgrp - change a file's group owner


cat /etc/group |cut -d: -f1 //  find all the groups available on your system

find /home -group user // find user named user

find /etc -group root // find group root
-rwxrw-r--
  • rwx (Owner) - The owner has read/write and execute permissions.

  • rw- (Group) - The group has read and write permissions.

  • r-- (Everyone else) - Everyone else has read permissions.

Running chmod -R 777 / as root will break your system.

No comments:

Post a Comment