https://phoenixnap.com/kb/linux-file-permissions
https://opensource.com/article/19/8/linux-chmod-command
[root@az-cvs-li-re-001 rage]# chmod ugo+rwx test
[root@az-cvs-li-re-001 rage]# ls -l|grep test
drwxrwxrwx 2 root root 6 Jun 1 09:53 test
[root@az-cvs-li-re-001 rage]# chmod u+rwx,g-rwx,o+rw-x test
[root@az-cvs-li-re-001 rage]# ls -l|grep test
drwx---rw- 2 root root 6 Jun 1 09:53 test
-----------------------------------------------------------------------------------------------
https://phoenixnap.com/kb/linux-chown-command-with-examples
chown [OPTIONS] USER[:GROUP] FILE(s)
[OPTIONS] – the command can be used with or without additional options.
[USER] – the username or the numeric user ID of the new owner of a file.
[:] – use the colon when changing a group of a file.
[GROUP] – changing the group ownership of a file is optional.
FILE – the target file.
[rage@az-cvs-li-re-001 ~]$ ls -la test
total 4
drwx---rw- 2 rage root 6 Jun 1 09:53 .
drwx------. 36 rage rage 4096 Jun 1 09:53 ..
[rage@az-cvs-li-re-001 ~]$ chown :rage test
[rage@az-cvs-li-re-001 ~]$ ls -la test
total 4
drwx---rw- 2 rage rage 6 Jun 1 09:53 .
drwx------. 36 rage rage 4096 Jun 1 09:53 ..
No comments:
Post a Comment