Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Issue with sudo logging and hung sessions

    Posted Mon August 03, 2020 02:11 AM
    Hi,

    I am currently using sudo version 1.8.17.1 on my AIX 7.1 and 7.2 OS servers. Recently we noticed a large number of hung sessions during Service Now mapping which also created a number of log files in sudo-io directory.

    root@server:/ # who -u
    username pts/34 Jul 30 08:13 old 21495820 (10.x.x.x)
    root@server:/ #

    root@server:/ # ps -ef | grep 21495820
    root 21495820 1 0 Jul 30 - 0:00 sudo -S -p ___SNC_PWD_PROMPT___03e07131ab121010149b7fbc7e4efe52 lsof -iTCP -n -P -F pcnfT
    root 24903818 21495820 0 0:00 <defunct>
    root@server:/ #

    I am not able to kill the defunct process. Also the number of log files is very high.

    Iused %Iused Mounted on
    427853 62% /var

    root@server:/var/log/sudo-io/00/0J/C0 # cat log
    1234567894:username:root::/dev/pts/5:255:255
    /home/username
    /usr/sbin/lsof -iTCP -n -P -F pcnfT

    Please suggest how to resolve this issue since it is creating a large number of hung sessions which is preventing other users from logging in. Also it is reaching maximum inode usage on /var

    ------------------------------
    Aparna Mangaadan
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Issue with sudo logging and hung sessions

    Posted Mon August 03, 2020 05:41 AM
    Sudo 1.18.17 is not from AIX Toolbox, probably from another source.
    May be you want to run procstack on the hung process to check whether it's sudo which got hung or lsof.

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