through the table we can determine what number should we fill in to change the access rights according to our wishes.
for example: note the blue line below.
The distribution of access rights.
drwxr-xr-x 2 root root 4096 Nov 5 20:48 cdebconf
The blue colored lines declare the permissions of a directory.
Now we will change the access rights on a calculation using numeric mode table above. As in the calculation of octal mode, the access rights will now be divided into three groups, each group having 3 digit number that represents the permissions.
d rwx r-x r-x 2 root root 4096 Nov 5 20:48 cdebconf
group-1 group-2 group-3
user group other
Now we will change the directory access rights are entitled to full access to all its group. Note the calculations in the table above.
typing in a terminal:
chmod 777 filename
chmod 777 cdebconf or
chmod 0777 cdebconf
then type :
ls -l
drwxrwxrwx 2 root root 4096 Nov 5 20:48 cdebconf
prior to the change permissions:
drwxr-xr-x 2 root root 4096 Nov 5 20:48 cdebconf
after changes permissions :
drwxrwxrwx 2 root root 4096 Nov 5 20:48 cdebconf
Tidak ada komentar:
Posting Komentar