-rw-r--r-- 1 Laser users 5 Jan 24 16:40 testThe Permissions
- rw- r-- r-- |
r w x |
Command | chmod o+x,g+x,a+x ./test |
Result |
-rwxr-xr-x 1 Laser users 5 Jan 24 16:40 test |
Command | chmod -x ./test |
Result |
-rw-r--r-- 1 Laser users 5 Jan 24 16:40 test |
Command | chmod 755 ./test |
Result |
-rwxr-xr-x 1 Laser users 5 Jan 24 16:40 test |
"Laser users"These names are the name of the owner of the file and the group of the file respectively. Now to change these attributes, linux gives you the capability to do so with the chown and chgrp commands. Both need the what you want the owner/group to be as the first part of the command, followed by the file's name which you want to change;
Command | chown bob ./test |
Result |
-rwxr-xr-x 1 bob users 5 Jan 24 16:40 test |
Command | chgrp dba ./test |
Result |
-rwxr-xr-x 1 bob dba 5 Jan 24 16:40 test |
|
|
|
|
|
|
|
|
|
|