AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Unable to sudo root

    Posted Fri April 01, 2022 03:31 AM
    Hi,
    We have created PowerHA nodes with 7.2 OS and created multiple System Administrator User. Problem which we are facing is that the Admin users are unable to sudo su - root. Whenever they type the command following error occurs on both PowerHA nodes.

    $ sudo su - root
    sudo: Account expired or PAM config lacks an "account" section for sudo, contact your system administrator
    sudo: a password is required

    Assistance is required.


    ------------------------------
    Muhammad Junaid Waqas
    ------------------------------


  • 2.  RE: Unable to sudo root

    Posted Fri April 01, 2022 03:42 AM
    Are you using the sudo from AIX Toolbox ? 
    Share the below outputs.

    rpm -qf $(which sudo)
    rpm -qi $(rpm -qf $(which sudo))


    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Unable to sudo root

    Posted Wed August 31, 2022 05:55 AM
    bash-4.2# rpm -qf $(which sudo)
    sudo-1.9.8-3.ppc

    bash-4.2# rpm -qi $(rpm -qf $(which sudo))
    Name : sudo
    Version : 1.9.8
    Release : 3
    Architecture: ppc
    Install Date: Thu Dec 23 10:21:40 PKT 2021
    Group : Applications/System
    Size : 27744067
    License : BSD
    Signature : DSA/SHA1, Tue Sep 21 20:35:25 PKT 2021, Key ID 5a89dfa27ee470c4
    Source RPM : sudo-1.9.8-3.src.rpm
    Build Date : Tue Sep 21 06:06:42 PKT 2021
    Build Host : power8-aix.osuosl.org
    Relocations : (not relocatable)
    Packager : Todd C. Miller <Todd.Miller@sudo.ws>
    Vendor : Todd C. Miller
    URL : https://www.sudo.ws
    Summary : Provide limited super-user privileges to specific users
    Description :
    Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log root activity. The basic philosophy is to give as few privileges as possible but still allow people to get their work done.

    ------------------------------
    Irfan Badar Baloch
    ------------------------------



  • 4.  RE: Unable to sudo root

    Posted Thu September 01, 2022 09:23 AM
    This is not from Toolbox. Can you try the one from AIX Toolbox ?

    ------------------------------
    Ayappan P
    ------------------------------