Results 1 to 6 of 6

Thread: File permission in Linux

  1. #1
    Join Date
    Jan 2010
    Posts
    49

    File permission in Linux

    I am running with Linux RH5 operating system and new for this operating system and need to know some basic things about file permission. i want keep secure my personal file in the network.I think someone can access my files and need to prevent the access from the files.I need your instructions to achieve this task.Your help would be appreciated.

    Thanks you.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    File permission in Linux

    File permission in Linux :

    In the Linux operating system, Each file belongs to a particular user and group and other.The other refers to that user which is not the owner of file nor the member of that group.

    Commonly,permissions are the controlled by three world Read,Write,Execute.According to this permission,the files are dispersed in the system or network.

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Read permission on file

    Read permission on file :

    The owner of file or the Root can grant access on the file in Linux.I am going to explore the procedure of granting the Read permission on file.

    Enter into your account and permit the write access of files to Other users :

    $ chmod o+r my_file.txt /* Write access to the others
    $ chmod g+r my_file.txt /* Write access to Group


    The Chmod command is being used to change the mode of file.
    Last edited by Solomon; 15-02-2010 at 08:38 PM.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Write permission in Linux

    Write permission in Linux :

    The write operation can be performed when the owner of file want to grant.The owner of the file can prevent your self using chmod command with U option.Here is an example which is granting the write access to others and group.

    $ chmod o+w my_file.txt
    $ chmod g+w my_file.txt


    The w word specifies the Read permission on the file to group and others respectively.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    Execute permission on File in Linux

    Execute permission on File :

    The execute permission specifies that a user can view and use of file for other task.The execute permission is granted with x word and associate the name of file.An example is given below :

    $ chmod o-x sneak.txt
    $ chmod o-x sneak.txt

    You can specify the Others and Group together for permission for particular file.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,295

    Changing Permissions With Numbers

    Changing Permissions With Numbers :

    Linux provide another way to change permission of files which is dependent on the calculation of number.The number are here against permission :

    Read [r - 4]
    Write [w- 2]
    Execute [x - 1]
    Nothing [- - 0]

    You can use these number grant the permission with calculation.I am going to show an example in which I will grant read and write permission to others on Lillber.txt .

    $ chmod 006 Lillber.txt

Similar Threads

  1. Replies: 5
    Last Post: 03-02-2012, 08:50 AM
  2. Replies: 3
    Last Post: 20-03-2011, 05:40 AM
  3. Making permission for normal user in Linux
    By Disha N in forum Operating Systems
    Replies: 4
    Last Post: 27-12-2010, 10:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,508,813.86230 seconds with 17 queries