AIX

 View Only
  • 1.  sudo run slow

    Posted Tue November 02, 2021 08:50 AM
    Hello AIX Opensource community

    sudo -i (or sudo su -) command run slowly our AIX (~ 20 sec).
    Have you any idea about this ? truss command show a lot of /etc/passwd checks, ... is there any other debug mode for sudo command ?

    I checked skulker command and find it disabled on crontab.
    Is there any relation with sudo slowness ? is there any relation with a lot of file on /tmp ?

    Thanks for your help

    ------------------------------
    Abderahim ABBAS
    ------------------------------


  • 2.  RE: sudo run slow

    Posted Tue November 02, 2021 08:56 AM
    Hi

    Try issuing the sudo command with the truss command in order to trace execution:

    truss sudo -l

    HTH


     


    César Daniel Delgado Ponce.

    Sistemas Operativos Seguridad Distribuidos (6181)
    +58 212 503 0619
    Twitter:@MercantilBanco
    YouTube: Mercantil Banco







  • 3.  RE: sudo run slow

    Posted Tue November 02, 2021 02:18 PM
    Good morning

    I had the same event on some occasion and it was associated with problems in the sudoers file, for which I proceeded to generate a clean sudoers file with the required permissions .. (You must be sure that the permissions are correct because otherwise the sudoers fails and only with root could fix it). Once I validated that this was working, I proceeded to reconfigure each of the inputs until I identified the line that had faults.

    Best regard


    ------------------------------
    Wilson Salazar
    ------------------------------



  • 4.  RE: sudo run slow

    Posted Tue November 02, 2021 04:33 PM
    Hello

    Thanks for your responses.

    /etc/sudoers validation run quickly, 
    ...
    /etc/sudoers: parsed OK

    real 0.86
    user 0.03
    sys 0.01

    truss are not very clear ! is there another way to identify the issue ?

    thanks

    ------------------------------
    Abderahim ABBAS
    ------------------------------



  • 5.  RE: sudo run slow

    Posted Tue November 02, 2021 04:46 PM

    Have you noted slow connections using SSH to that server ?? If so, please check you name resolution order in /etc/netsvc.conf file and check the /etc/hosts file. Your system must be able to resolve its own name so must be correctly defined in /etc/hosts 

    HTH


     


    César Daniel Delgado Ponce.

    Sistemas Operativos Seguridad Distribuidos (6181)
    +58 212 503 0619
    Twitter:@MercantilBanco
    YouTube: Mercantil Banco







  • 6.  RE: sudo run slow

    Posted Wed November 03, 2021 04:55 AM
    Hello 

    Yes, /etc/netsvc.conf are correct :
    # cat /etc/netsvc.conf
    hosts=local4,bind4

    et machine local resolution are good.

    ------------------------------
    Abderahim ABBAS
    ------------------------------



  • 7.  RE: sudo run slow

    Posted Wed November 03, 2021 10:41 AM
    Take a look of this

    Diagnosing The Problem. Run from the TADDM server: ssh taddmsvc@10.238.208.149 sudo lsof -Di -nP -i and from the target server: sudo lsof -Di -nP -i