The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: permission help
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-12-2003
yls177
Guest
 

Posts: n/a
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)