Find the answer to your Linux question:
Results 1 to 4 of 4
HI.. can anyone tell me that how can i secure a folder(i.e. it can be used only by one person although more than one are using same OS in the ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    3

    Files

    HI..
    can anyone tell me that how can i
    secure a folder(i.e. it can be used only by
    one person although more than one are using same
    OS in the same computer).
    IN windows one can replace the file with recycle bin using registry
    is there same kind of trick in linux

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You set permissions so that only the user can read it e.g.
    Code:
    #chmod 700 /path/to/some/file

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    3
    but by that i can still access a folder or a file

  4. #4
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Then I'm not sure what you want to do.

    You want only one user to access it??
    or
    You want no users to access it??

    chmod 700

    allows only the owner of the file to access it.
    if you set a folder to that level then only the owner can get into that folder.

    You can change the owner to root then only the root account can access it.

    If you want it hidden then put a period in front of the name.

    for more information at a console type

    info chmod
    and/or
    info chown

Posting Permissions

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