AIX

 View Only
  • 1.  Unable to sudo

    Posted Fri December 17, 2021 08:49 AM
    While executing sudo su - command it is showing below error.

    $ sudo su -
    sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
    $


    ------------------------------
    JOY GHOSH
    ------------------------------


  • 2.  RE: Unable to sudo

    Posted Mon December 20, 2021 05:21 AM
    Hi,

    Check owner and permission of the executable ->
    owner: root
    group: system
    permission: ---s--x--x

    -mf-

    ------------------------------
    Markus Feichtinger
    System Administrator and Team Leader Core Systems
    @Bundesanstalt Statistik Österreich
    ------------------------------



  • 3.  RE: Unable to sudo

    Posted 24 days ago

    Hi 

     iam not able to do sudo -i Please help us 

    unals@munmvs0515:/home/kunals#chmod 4111 /usr/bin/sudo
    kunals@munmvs0515:/home/kunals#chown root /usr/bin/sudo
    chown: /usr/bin/sudo: Operation not permitted.
    kunals@munmvs0515:/home/kunals#sudo -i
    sudo: must be setuid root
    kunals@munmvs0515:/home/kunals#



    ------------------------------
    Ratnakar Bank
    ------------------------------



  • 4.  RE: Unable to sudo

    Posted 24 days ago

    Hi Team,

    Request your on call support for this i am suffering from past 2 days but issue is not resolved .

    Since it cirital PRO server and i unable to run any execute some appiction on this .

    Hope you understand my stiaution 



    ------------------------------
    Ratnakar Bank
    ------------------------------



  • 5.  RE: Unable to sudo

    Posted 24 days ago

    kunals@munmvs0515:/home/kunals#sudo -i
    sudo: must be setuid root
    kunals@munmvs0515:/home/kunals#

    find where sudo lives in your path, and confirm it's not a symlink (if it is, follow the symlinks until you find the executable)

    $ type sudo

    sudo is /usr/bin/sudo

    $ 

    $ ls -ld /usr/bin/sudo

    -r-s--x--x  1 root  wheel  1446192 Feb  2 12:19 /usr/bin/sudo

    $ 



    log in as root:
        # chown root /usr/bin/sudo
        # chmod 4511. /usr/bin/sudo

    Tom





  • 6.  RE: Unable to sudo

    IBM Champion
    Posted 23 days ago

    Well, then do open a case with IBM, this is not the place to get "on call" support.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 7.  RE: Unable to sudo

    Posted 23 days ago

    Hello,

    You stated:   kunals@munmvs0515:/home/kunals#chown root /usr/bin/sudo

    You are not logged in as root, so you can not change the permissions on the sudo binary.  Someone with root access needs to run these commands.



    ------------------------------
    Charles Buckley
    ------------------------------



  • 8.  RE: Unable to sudo

    Posted Mon December 20, 2021 12:20 PM
    Hi Joy

    The sudo command needs the following permissions:

    ---s--x--x. 1 root root 165488 Oct 19 16:21 /usr/bin/sudo

    To change it:
    chmod 4111 /usr/bin/sudo
    chown root /usr/bin/sudo

    After this change, it should work.


    ------------------------------
    Norbert Hamm
    Senior System Engineer
    soulTec AG
    Duebendorf
    +41 44 508 80 07
    ------------------------------



  • 9.  RE: Unable to sudo

    IBM Champion
    Posted 20 days ago

    Many times sudo ( like so many other things ) is a link off to the file being elsewhere.

    Make sure that the file ( whereever it ends up being ) is set to 4111 perms and owner is root

    chmod 4111  FILENAME < Enter > 
    chown root  FILENAME < Enter > 



    ------------------------------
    Alan Fulton
    Follow me on Twitter - @The_Iron_Monger
    ------------------------------