• /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

    Hey everyone,
    I’m pretty new to Linux and Antergos and while installing a program through sh, I just entered sudo bash program.sh when the error of the title ocurred for the first time.

    Now I’m not able to run anything through sudo.
    I found some fixes in the internet using:
    chmod 4755 /usr/bin/sudo
    in the recovery mode, but I’m not able to get to a recovery mode or to fix this problem.

    I’d be very happy for an answer.

  • @dbogadod Hi! i never had this problem, but i guess you can:
    Open terminal
    type su and put the root password
    pacman -Rns sudo
    pacman -S sudo --force
    and then see if works again…

    You’ll read in many places that sudo must be avoided on running programs, you should instead run them with “gksudo”, gksu", “kdesudo” or "kdesu"
    If you don’t have installed just:
    pacman -S gksu kdesu kdesudo

    Portergos site

    Still in love with Antergos (default OS)

    Linux newbie since 06/2016

  • Hey,
    thanks for your fast reply. This didn’t work either, but with a live cd and then in the recovery mode typing:

    mount -o remount,rw /
    mount --all
    chown root:root /usr/bin/sudo
    chmod 4755 /usr/bin/sudo
    chmod 4755 /bin/su

uid1 setuid1 owned1 usrbinsudo1 Posts 3Views 1044
Log in to reply