Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Whats up with SUDO?

  1. #1
    Join Date
    Aug 2007
    Beans
    66

    Whats up with SUDO?

    Until just now I have been able to open a terminal window and type 'sudo' then whatever I wanted to do. It would ask for my password, I would enter it and it would run my command. Now, all of a sudden, when I type sudo (+some command) I get this:

    dmcgurk@dan:~$ sudo fdisk -1
    sudo: must be setuid root
    dmcgurk@dan:~$

    Not only that, now when I try to mount my harddrive I get this error:

    Error org.freedesktop.DBus.Error.AccessDenied

    Details:

    A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" memeber "Mount" error name "(unset)" destination "org.freedesktop.Hal")


    I have no idea what I did or how to fix it

    Thanks,
    Dan

  2. #2
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Whats up with SUDO?

    I'm not sure I know how to solve your problem, but it might be helpful to boot from the LiveCD so you can use a different operating system to examine your hard drive.

    Then mount your hard drive at, (just for specificity) say, /media/disk.

    In a terminal:
    Code:
    % ls -l /media/disk/usr/bin/sudo
    It should look like this:
    Code:
    -rwsr-xr-x 1 root root 91776 2007-06-15 08:49 /usr/bin/sudo
    Notice the 's' in the permissions line. That indicates sudo has the suid bit set. The error message

    Code:
    sudo: must be setuid root
    seems to suggest this bit is not set.
    If you find that your suid bit is not set, then the fix may be to reinstall the sudo package. You may need some special instructions to do this without the sudo command. Post if you're having trouble with that.

    Also, this will not explain how your machine ended up like this, and it may be worth trying to figure that out so this doesn't happen again.

    The

    Code:
    Error org.freedesktop.DBus.Error.AccessDenied
    seems to be generated when some config file in
    /etc/dbus-1/system.d is not right. See

    http://osdir.com/ml/debian.devel.evo.../msg00024.html

    Unfortunately, blindly following that poster's solution probably won't work since his problem was somewhat different. I don't know exactly what you'd need to fix yours, short of reinstalling the dbus package.
    Last edited by unutbu; May 15th, 2008 at 02:38 PM.

  3. #3
    Join Date
    Oct 2007
    Location
    Serbia, Nis
    Beans
    233
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Whats up with SUDO?

    Follow unutbu suggestions and setuid can be set with:

    (following his example)
    Code:
    chmod u+xs /media/disk/usr/bin/sudo
    .___.___.__...__..___..__....__..__..
    |.__|.__|._\./__\|._.\/..\../..|/..\.
    |._||._||.v.|.\/.|.v././\.|.`7.|.//.|
    |_|.|___|__/.\__/|_|_\_||_|..|_|\__/.

  4. #4
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Whats up with SUDO?

    Quote Originally Posted by BlueSkyNIS View Post
    Follow unutbu suggestions and setuid can be set with:

    (following his example)
    Code:
    chmod u+xs /media/disk/usr/bin/sudo
    Why not boot into recovery mode and run that command??
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

  5. #5
    Join Date
    Oct 2007
    Location
    Serbia, Nis
    Beans
    233
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Whats up with SUDO?

    Quote Originally Posted by Dr Small View Post
    Why not boot into recovery mode and run that command??
    In that case the command would be:

    Code:
    chmod u+xs /usr/bin/sudo

    Cheers
    .___.___.__...__..___..__....__..__..
    |.__|.__|._\./__\|._.\/..\../..|/..\.
    |._||._||.v.|.\/.|.v././\.|.`7.|.//.|
    |_|.|___|__/.\__/|_|_\_||_|..|_|\__/.

  6. #6
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Whats up with SUDO?

    In recovery mode you have to preface the chmod command with 'sudo'. His sudo is not working, so I sent him to the LiveCD.

  7. #7
    Join Date
    Nov 2007
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Whats up with SUDO?

    Quote Originally Posted by unutbu View Post
    In recovery mode you have to preface the chmod command with 'sudo'. His sudo is not working, so I sent him to the LiveCD.
    No, in recovery mode you get a root shell. You don't need to grant root privileges to root .
    Wish I could prove I love you, but does that mean I have to walk on water?
    When we are older you'll understand it's enough when I say so, and maybe some things are that simple.

  8. #8
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Whats up with SUDO?

    Ah! You are right. Thanks.

  9. #9
    Join Date
    Feb 2008
    Location
    St. Petersburg, Russia
    Beans
    116
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Whats up with SUDO?

    Quote Originally Posted by prenger745 View Post
    dmcgurk@dan:~$ sudo fdisk -1
    You probably want to run
    Code:
    sudo fdisk -l
    with lowercase "L", not "one".

  10. #10
    Join Date
    Jan 2008
    Location
    /dev/null
    Beans
    2,793
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Whats up with SUDO?

    Quote Originally Posted by conscious View Post
    You probably want to run
    Code:
    sudo fdisk -l
    with lowercase "L", not "one".
    even so fdisk would have returned
    Code:
    fdisk: invalid option -- 1
    
    Usage: fdisk [-b SSZ] [-u] DISK     Change partition table
           fdisk -l [-b SSZ] [-u] DISK  List partition table(s)
           fdisk -s PARTITION           Give partition size(s) in blocks
           fdisk -v                     Give fdisk version
    Here DISK is something like /dev/hdb or /dev/sda
    and PARTITION is something like /dev/hda7
    -u: give Start and End in sector (instead of cylinder) units
    -b 2048: (for certain MO disks) use 2048-byte sectors
    so that isn't the problem

Page 1 of 2 12 LastLast

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
  •