Results 1 to 7 of 7

Thread: unable to use sudo

  1. #1
    Join Date
    Nov 2012
    Beans
    19

    unable to use sudo

    sudo: must be setuid root . this is the error message i get when i tried after using chown -r command
    i tried booting in recovery mode and used the following commands
    chown root:root /usr/bin/sudo
    chmod 4755 /usr/bin/sudo
    but it shows there is no such directory
    i tried the su command
    but password authentication shows failure even after typing correct pwd in terminal
    i tried pkexec in terminal and it shows pkexec must be setuid root

  2. #2
    Join Date
    May 2012
    Beans
    248
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: unable to use sudo

    Not sure what your question is, did you delete sudo?
    On my system (12.04 LTS) within /usr/bin I have: -rwsr-xr-x 2 root root 71288 Feb 27 20:54 sudo

  3. #3
    Join Date
    Mar 2011
    Location
    UK
    Beans
    125
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: unable to use sudo

    hi

    what is the output of:
    Code:
    ls -al /usr/bin/sudo
    also unlless you have enabled the root account with

    Code:
    sudo passwd
    then I wouldn't expect su wouldn't work

    Barry
    Desktop: Z77X-UD5H, Intel i7 3770k, NVidia GeForce 660 Ti Sli 16GB DDR3 RAM 2TB HDD
    OSes: Mint 14 x64 Windows 7 Ultimate x64
    Laptop: Dell Latitude E6430
    OSes: Ubuntu 13.04 x64, Backtrack 5 R3

  4. #4
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    Re: unable to use sudo

    what "chown -r command" ?!

  5. #5
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,552
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: unable to use sudo

    chown -r, and now sudo is no longer owned by root. Did you by any chance try to change ownership of some system directories to yourself? In that case more things than just sudo will be broken. You'll have a hard time repairing everything. My standard advice if you really did that is to reinstall.

  6. #6
    Join Date
    Nov 2012
    Beans
    19

    Re: unable to use sudo

    -rwxr-xr-x 2 root root 69708 Feb 28 02:02 /usr/bin/sudo
    this is output for ls -al /usr/bin/sudo
    mnadarasan@mnadarasan-AcerPower-Series:~$ sudo passwd
    sudo: must be setuid root
    mnadarasan@mnadarasan-AcerPower-Series:~$ passwd
    Changing password for mnadarasan.
    (current) UNIX password:
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: Authentication token manipulation error
    passwd: password unchanged

    the above error message for passwd

  7. #7
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,552
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: unable to use sudo

    Boot into recovery mode, drop to a root shell and mount the file system rw (if necessary), just as instructed here, up to but not including the third screenshot. If you have you /usr on a separate partition, then mount that rw. You would know it if that is the case. Then use the command
    Code:
    chmod 4755 /usr/bin/sudo
    But I don't know what you did wrong and it's likely there are more problems.

    Edit: If this doesn't work, please post the complete output here. There may be other things wrong with your computer. In fact, it may be that bad that reinstalling is the best option. I still don't know what you meant by the chown -r command you mentioned in your first post, but recursive chowns on a system directory can be pretty disastrous.
    Last edited by Impavidus; May 19th, 2013 at 10:58 AM.

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
  •