Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32

Thread: Just want full root access for everything chown makes no sense :(

  1. #21
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Just want full root access for everything chown makes no sense :(

    Ahh...

    First time you've mentioned a W7 install, though I suspected this when you mentioned virus. You should note that Windows-based AV apps will sometimes give false positives when scanning Linux partitions because they don't know what they are seeing and just default to crying wolf.

    Just looked it up and the 999 UID is assigned to first system user account defined by a normal user. It's just a pure guess, but I suspect that you created this account trying to invoke root and your OS now defaults to this as your UID. Continuing to operate as User 999 may make things difficult for you. I don't know if your /home directory is owned by 999 or 1000 (as it would be in a regular install). Remember, you can't access directories/files belonging to another user.

    Your awk string contained an extra space that generated verbose output, but no harm done. We got what we wanted. As a tip, in future, it's best to copy and paste commands from code box into terminal with mouse.

    I highly recommend Psychocat's site to familiarize yourself more with Ubuntu in general. Because you are running WINE, this sticky is fantastic for learning security despite the fact that it is quite deep and involved. Pay special attention to the WINE section and to NOT run it as root (not a good idea for any common app, but especially WINE). Digesting both will give you a better understanding of why Ubuntu does things the way it does.

  2. #22
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Just want full root access for everything chown makes no sense :(

    Quote Originally Posted by bigmonmulgrew View Post
    ...

    Code:
    chown user:group /directory
    This wont change the ownership on any files in the directory but any new files will take the settings of the parent folder.
    This is not true of any default Debian/Ubuntu Linux system. You have to set SIUD/SGID bits to have inheritance. See here for the relevant info. I believe this is so of RedHat/CentOS/SUSE too, but I have only slight experience with those distros.
    -BAB1

  3. #23
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Just want full root access for everything chown makes no sense :(

    Quote Originally Posted by DuckHook View Post
    Just looked it up and the 999 UID is assigned to first system user account defined by a normal user. It's just a pure guess, but I suspect that you created this account trying to invoke root and your OS now defaults to this as your UID...
    I think the OP was running a LiveCD version. In that instance the user is ubuntu with no password. See below in red (provided by the OP)
    Code:
    username: ubuntu:x:999:999:Live session user,,,:/home/ubuntu:/bin/bash
    The first user created on an fresh install is always 1000.

    Edit: FWIW you can print a list of users like this
    Code:
    getent passwd
    Last edited by bab1; February 23rd, 2013 at 12:32 AM.
    -BAB1

  4. #24
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Just want full root access for everything chown makes no sense :(

    Quote Originally Posted by bab1 View Post
    I think the OP was running a LiveCD version
    If so, you mean he's been trying to delete a file from a DVD??? How would he have installed WINE? or run W7 AV?

    @OP

    Please clarify.

  5. #25
    Join Date
    Jul 2008
    Beans
    18
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Just want full root access for everything chown makes no sense :(

    Good thread, great read, thanks.
    This behavior is by design.

  6. #26
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Just want full root access for everything chown makes no sense :(

    Quote Originally Posted by DuckHook View Post
    If so, you mean he's been trying to delete a file from a DVD??? How would he have installed WINE? or run W7 AV?

    @OP

    Please clarify.
    You can install apps using a LiveCD. I have installed Samba Server myself. It's not persistent, but you can do it. I can't see any reason why you can't install Wine. If you mount a partition you can save data too. The system that is running is a compressed image that is inflated when booted (init). It's true the DVD files can't be changed from read only.
    -BAB1

  7. #27
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Just want full root access for everything chown makes no sense :(

    Quote Originally Posted by bab1 View Post
    You can install apps using a LiveCD.
    I know it can be done. It was more a series of... ehmm... rhetorical questions...

  8. #28
    Join Date
    Dec 2009
    Beans
    6,776

    Re: Just want full root access for everything chown makes no sense :(

    Quote Originally Posted by Visrite View Post
    All I want is to be allowed to change my files permissions so I can run executables with WINE .....
    Just as a side note: Wine can't even determine if an *.exe file has a Linux executable bit set so it doesn’t matter if it's executable or not.

    When you double click test.exe the following command is run:
    Code:
    cautious-launcher test.exe wine start /unix
    Cautious-launcher is the thing that checks to see if it's executable not Wine ( also holds true for a java jar file ). The thing to do is either bypass or disassociate cautious-launcher from Wine: http://ubuntuforums.org/showthread.php?t=1747138

    Option 2 in that link no longer works because setting a custom command in Nautilus is now verboten - it's a feature so it had to go. But you can install the Thunar file manager and get it back.

    As another side note I wouldn’t do this on a drunken bet:
    chmod -R 750 /directory
    You just made every single file executable. The Jedi way is something like this:
    Code:
    chmod -R a+rwX,g-w,o-rwx /directory
    All folders will be 750
    All Files will be 640 except those that were executable to begin with.

  9. #29
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Just want full root access for everything chown makes no sense :(

    Quote Originally Posted by Morbius1 View Post
    ... The Jedi way is something like this:
    Code:
    chmod -R a+rwX,g-w,o-rwx /directory
    All folders will be 750
    All Files will be 640 except those that were executable to begin with.

    Absolutely +1
    -BAB1

  10. #30
    Join Date
    Feb 2013
    Beans
    11

    Re: Just want full root access for everything chown makes no sense :(

    Are you having trouble with the syntax of the command or just understanding what it does?

Page 3 of 4 FirstFirst 1234 LastLast

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
  •