|
lrwxrwxrwx
l -> link to other files, besides l, it could be others..letters
r-> read
w-> write
x -> executable
three of them makes a set
after l, the first set, rwx is for the owner permission
the second set is for the group. to find out whcih group u are in, do a more /etc/passwd | grep yourusename
the third set is for others. which mean other users.
rwx in binary form is 2 to the power of 0, 1, 2 and that gives the below
r == 1
w == 2
x == 4
to change mode, chmod 777, chmod +xrw
to change owner, chown newowner:newgroup file
to change group, chgrp (hmm, CANT REMEMBER NOW)
|