Find the answer to your Linux question:
Results 1 to 3 of 3
Hello! I like the "Ubuntu" sudo philosophy and wanted to setup this sudo the same way on my Debian system. I was happy when I found that I just have ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    10

    Question sudo results in strange file owner

    Hello!

    I like the "Ubuntu" sudo philosophy and wanted to setup this sudo the same way on my Debian system. I was happy when I found that I just have to do the following:

    -create a group 'admin'
    -adduser christian admin
    -visudo
    -add the line: %admin ALL=(ALL) ALL

    Then I tried sudo rm -rf / to check if sudo works. All worked fine...

    No, seriously, I can move around files that belong to the root and such, so sudo somehow works. But when creating new files with sudo, like e.g.

    tar xzf myZippedTarball
    these files belong to user 41034 and to the group users instead of root root:

    drwxr-xr-x 7 41034 users 4096 2009-11-01 01:07 libsvm-2.9

    Certainly, this is not the way I want to have. The user 41034 doesn't even show up in /etc/passwd...

    What am I doing wrong?

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    tar stores the UIDs of the source files.
    Then you unpack a tar as root, these UIDs can be set.
    Unlike a regular user.

    So everything working as intended,
    itīs not a bug, itīs a feature
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    10
    Gee, thanks! As long as I know about them, features rock.

Posting Permissions

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