Find the answer to your Linux question:
Results 1 to 5 of 5
I know you can change permissions of a file to say 777 or 755 or 0755 or 0777 or others, but what exactly do the numbers mean, i have used ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790

    permissions, please explain


    I know you can change permissions of a file to say 777 or 755 or 0755 or 0777 or others, but what exactly do the numbers mean, i have used Linux for a month or so now, and a mate keeps telling me to do this, i know 777 gives all privileges to evry1, but dunno what other levels there are, someone please explain!

  2. #2
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    IIRC it was sarumont who posted a good explanation a while ago use the search to find it.

  3. #3

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Fast explanation...

    r = read permission = 4
    w = write permission = 2
    x = execute permission = 1

    Total = 7

    Lets say that i want to have a read+execute on a file for the owner only that i run chmod 500 which means (read=4 + execute=1 == 5) on group and everybody section we said 00 which means granted for nothing.

    -r-x------ testfile = 500
    -rwx----- testfile = 700
    -rwx--x--- testfile= 710

    ans so on...
    Regards

    Andutt

  6. #5
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Thanx! Think i get it now!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •