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
Expand all | Collapse all

Yum history Login user entry

  • 1.  Yum history Login user entry

    Posted Thu April 27, 2017 04:33 PM

    Originally posted by: rmeyer5


    Yum history provides a mechanism for supporting change control with details including the command, date, and time, activity, in addition to alterations. Below is the output from the yum history command, followed by the yum history info which identifies the user. Unfortunately, the user is reported as System <unset> on AIX systems. The Linux system reports both in history and in the history info the specific user name. Is there a global variable I need to apply so that changes are not all reported as System <unset>?

     

    [root@aixhq1:/root] #yum history
    ID     | Command line             | Date and time      | Action(s)      | Altered
    -------------------------------------------------------------------------------
         3 | install createrepo        | 2017-02-20 10:29  | Install           |    4
         2 | reinstall libgcc             | 2017-02-13 14:03  | Reinstall      |    1
         1 | install libffi                    | 2017-02-13 11:06   | Install           |    1 PP
    history list
    [root@aixhq1:/root] #yum history info 3
    Transaction ID : 3
    Begin time     : Mon Feb 20 10:29:42 2017
    Begin rpmdb    : 51:17ce5497e68cdf7eed02ab938f104b85c6c6ab26
    End time       :            10:29:44 2017 (2 seconds)
    End rpmdb      : 55:0ebc38c31cc583fb9eb6eb4d13e047cb21de3622
    User           : System <unset>
    Return-Code    : Success

    ==================================================================================================================================================================

    [root@lnxvtmwhq001 ~]# yum history
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    ID     | Login user               | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
         5 | James Smith  <jsmith2>      | 2017-04-26 10:22 | I, U             |   17
         4 | root <root>                               | 2017-03-27 06:31 | Install        |    1 EE
         3 | root <root>                               | 2017-03-27 06:31 | Install        |   16
         2 | root <root>                               | 2017-03-27 06:26 | I, U             |  314 EE
         1 | System <unset>                     | 2017-03-27 07:20 | Install        |  509
     



  • 2.  Re: Yum history Login user entry

    Posted Wed June 14, 2017 11:29 AM

    Originally posted by: AyappanP


    Thanks for bringing up the issue.

    Yum make use of Linux loginuid mechanism so it doesn't work on AIX. We will fix this in upcoming release.  The fix is available at https://github.com/aixoss/yum/commit/4122be9b5ffa68571ed18e2333f67689d017dc42

    You can also apply this fix directly in this file /opt/freeware/lib/python2.7/site-packages/yum/misc.py