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

dnf_installer.sh doesn't support AIX RBAC

  • 1.  dnf_installer.sh doesn't support AIX RBAC

    Posted Mon February 27, 2023 04:24 AM

    The excerpt from the script:

    # Check if we are running this as the root user.
    if [[ "$(id -u)" != "0" ]]
    then
        echo "This script must be run as root."
        exit 1
    fi
    

    As far as I can find, the script uses chfs, installp and rpm commands. It means you need to check for two access authentications - aix.fs.manage.change and aix.system.install. Something like:

        if [[ "$(ckauth -A aix.fs.manage.change,aix.system.install)" != "0" ]]
        then
            echo "This script must have aix.fs.manage.change and aix.system.install privileges."
            exit 1
        fi
    



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------

    #AIXOpenSource