Find the answer to your Linux question:
Results 1 to 7 of 7
i admit to being new to linux and all, but i was just playing around with it, and the terminal. I created a test folder with a variety of files ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    4

    file permissions - quite strange

    i admit to being new to linux and all, but i was just playing around with it, and the terminal. I created a test folder with a variety of files inside, stored in my home directory. Then changed the chmod setting to 000 for all files (which i believe means no read, write or execute). Fine, that works. I can't open the files, copy or move them, but somehow I can easily delete these files just by pressing the delete key on my keyboard. Does anybody know what's going on here? I'm on ubuntu 9.04.

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    That wont happen, Im using ubuntu 9.04. didnt faced such bug.
    but make sure. that you are not running nautilus with root privilages (X_X less possibilty)
    and permissions are changed correctly to 000
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    4
    Quote Originally Posted by b2bwild View Post
    That wont happen, Im using ubuntu 9.04. didnt faced such bug.
    but make sure. that you are not running nautilus with root privilages (X_X less possibilty)
    and permissions are changed correctly to 000
    but it did happen!
    Sorry, i'm not sure what nautilus is, but the permissions were definitely set to 000. i checked with "ls -l".

  4. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Nautilus is your file browser, can you remove file with rm command?
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    4
    Quote Originally Posted by b2bwild View Post
    Nautilus is your file browser, can you remove file with rm command?
    Yes I can, but when I use the rm command through the terminal, it gives a message saying asking if i'm sure i want to delete the read only file. If I type Yes then it deletes. When deleting directly from the file browser I don't even get a confirmation.

  6. #6
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    You can delete or move files (nautilus will move file to trash on delete) when you have write permission on directory of file.
    e.g.

    /home/popo/Main
    (You have full access to folder Main)
    ~/Main/Sub
    (You have no permission for directory Sub)

    In this case you can delete/move/rename contents of Main, but not Sub.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  7. #7
    Just Joined!
    Join Date
    May 2009
    Posts
    4
    I see. Thanks for clearing that up mate.

Posting Permissions

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