Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Hello Everybody!

    I have just started my adventure with linux. i've choose Debian as my distro.currently i'm reading linux+ guide book.

    my question is:

    1: as root user i'm create a file. just simple touch myFile.
    2: then with #chmod 000 myFile
    i'm removing permissions on that file
    so after #ls -l myFile
    --- --- --- root root myFile

    3.i logout from root. and switch to normal user
    4.then as std user: $rm -f myFile

    Why can i delete this file when i'm std user ? when owner/grp is root root?
    i don't get it.

    ps. i create that file in std user dir /home/testuser/Desktop
    but i've read that permissions are not additive so it should't matter where is a file as long as std user can go there


  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Virginia, USA
    Try the command id. Perhaps you have set this user's ID to 0, which would give you root permissions.

Posting Permissions

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