Find the answer to your Linux question:
Results 1 to 2 of 2
I would like to know how can I set up folder permissions when using chmod for: Owner Permissions : All Permissions Group Permissions : List folder contents, open files, append ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2013
    Posts
    1

    Folder Permissions


    I would like to know how can I set up folder permissions when using chmod for:

    Owner Permissions: All Permissions

    Group Permissions: List folder contents, open files, append to existing files, and run scripts. Cannot delete files or create new ones.

    Other Permissions: List folder contents only

    I'm entering the command:
    # chmod 755 folder

    Is 755 the right permission??

    Thanks in advance

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    652
    File permission (octal codes)
    Code:
    0 - no permissions
    1 - execute (not much good without read)
    2 - write
    3 - write and execute
    4 - read
    5 - read and execute
    6 - read and write
    7 - read, write and execute
    For directories the "execute" permission is really "browse access" into the directory (without this you will need to know the file name inside the directory).


    First octal digit is for owner the second is for the group and the third is for others.


    Maybe you should use the newer options for chmod:
    Code:
    u+rwx,g=rx,o-rwx
    a=rwx
    ...

Posting Permissions

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