Sunday, May 22, 2011

0

Check and Change Permission File and Folder in fedora linux. Change Permission in Linux, Open Permission in Limux.

  • Sunday, May 22, 2011
  • ikraninc
  • Share

  • Check permission in Linux:
    ls -l or ls -l Streamline-AdminApp

    Change Permission in Linux :
    chmod 755 Streamline-AdminApp

    This string of letters, drwxrwxrwx, represents the permissions that are set for this folder. (Note that these are often called attributes by FTP programs.) Let's explain what each of these letters means:
    d
    r
    w
    x
    r
    w
    x
    r
    w
    x

    Owner
    Group
    Other
    Directory
    Read
    Write
    Execute
    Read
    Write
    Execute
    Read
    Write
    Execute

    As you can see, the string of letters breaks down into 3 sections of 3 letters each, representing each of the types of users (the owner, members of the group, and everyone else). There is also a "d" attribute on the left, which tells us if this is a file or a directory (folder).
    If any of these letters is replaced with a hyphen (-), it means that permission is notgranted. For example:
    drwxr-xr-x
    A folder which has read, write and execute permissions for the owner, but only read and execute permissions for the group and for other users.
    -rw-rw-rw-
    A file that can be read and written by anyone, but not executed at all.
    -rw-r--r--
    A file that can be read and written by the user, but only read by the group and everyone else.
    Using numbers instead of letters
    As we said earlier, you'll often be asked to do things using numbers, such as "set 755 permissions". What do those numbers mean?
    Well, each of the three numbers corresponds to each of the three sections of letters we referred to earlier. In other words, the first number determines the owner permissions, the second number determines the group permissions, and the third number determines the other permissions.
    Each number can have one of eight values ranging from 0 to 7. Each value corresponds to a certain setting of the read, write and execute permissions, as explained in this table:
    Number
    Read (R)
    Write (W)
    Execute (X)
    0
    No
    No
    No
    1
    No
    No
    Yes
    2
    No
    Yes
    No
    3
    No
    Yes
    Yes
    4
    Yes
    No
    No
    5
    Yes
    No
    Yes
    6
    Yes
    Yes
    No
    7
    Yes
    Yes
    Yes

    So, for example:

    777 is the same as rwxrwxrwx
    755 is the same as rwxr-xr-x
    666 is the same as rw-rw-rw-
    744 is the same as rwxr--r-

    0 Responses to “Check and Change Permission File and Folder in fedora linux. Change Permission in Linux, Open Permission in Limux.”

    Post a Comment