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.  is there a way to install sudo to use the 64-bit binaries by default

    Posted Tue November 14, 2023 04:37 PM

    Most of the toolbox tools on my system are installed automatically to use the 64 bit binaries by their links, but sudo is linked to 32 bit binaries.
    "visudo" is not working because some of the inode numbers of files in the NAS are too large for 32 bits.

    lrwxrwxrwx    1 root     system            7 Jun 14 17:11 /opt/freeware/bin/sudo -> sudo_32
    ---s--x--x    1 root     system       257930 Mar 09 2023  /opt/freeware/bin/sudo_64
    lrwxrwxrwx    1 root     system            9 Jun 14 17:11 /opt/freeware/sbin/visudo -> visudo_32
    ---x--x--x    1 root     system       269459 Mar 09 2023  /opt/freeware/sbin/visudo_64

    I thought that perhaps sudo was 32 bit because it was installed long ago, and perhaps a reinstallation might make it go in with links to 64 bit binaries, but that did not do it.

    Is there a way to install sudo to use the 64-bit binaries by default, or are we supposed to manually change the links to point to them ?
    Manual changes which make the system different from the RPM installation data seem quite prone to breakage, and it also takes extra work on each system.

    Surely there is some clever way to tell it that 64 bit installation is needed.

    What is the right way to get sudo installed to use the 64 bit binaries?

    Thanks!

    Mike Shon
    University of Rochester Medical Center



    ------------------------------
    Michael Shon
    ------------------------------


  • 2.  RE: is there a way to install sudo to use the 64-bit binaries by default

    Posted Wed November 15, 2023 04:55 AM

    It's quite easy to just change the link.  sudo isn't the only opensource package that comes with both 32 & 64 bit binaries that you switch between by changing the link.



    ------------------------------
    Phill Rowbottom
    ------------------------------



  • 3.  RE: is there a way to install sudo to use the 64-bit binaries by default

    Posted Wed November 15, 2023 10:36 PM

    Hi Michael

    In the past we had some issue with 64-bit sudo.

    We will check this and make 64-bit sudo by default.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 4.  RE: is there a way to install sudo to use the 64-bit binaries by default

    Posted Thu November 16, 2023 12:45 AM

     

    Excellent, thank you.

    When I searched the discussions, I had noticed a message posted by Edward Davignon Tue October 27, 2020, thanking you for fixing some problem with 64-bit sudo.

    This packaging change will get everything about sudo up to your normal standards.

     

    Thaks again.

     

    -Mike Shon






  • 5.  RE: is there a way to install sudo to use the 64-bit binaries by default

    Posted Thu November 16, 2023 08:43 AM

    Is there a release announcement page or some way to find out when that change goes into effect?

    I don't recall seeing anything like that anywhere for minor changes in  the AIX Toolbox.

    Or will DNF know that the package has changed and needs to be reinstalled?
    I'm not sure how that could work  - the sudo version won't change (I assume), and it seems like the dependencies and updates are based on that.



    ------------------------------
    Michael Shon
    ------------------------------



  • 6.  RE: is there a way to install sudo to use the 64-bit binaries by default

    Posted Thu November 16, 2023 05:50 PM
    The version of the RPM package should change, even if the version of sudo does not. There is a "serial" field in the package version specifically to deal with things like this.

    Because of that, DNF should notice.

    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems
    (m) 352-870-8649






  • 7.  RE: is there a way to install sudo to use the 64-bit binaries by default

    Posted Fri November 17, 2023 08:16 AM

    Sure - that makes sense, thank you.
    So we just keep trying to update it periodically until it actually does update.

    Works for me, but if the IS an online message board for updates and changes, I would like to know.

    I thought that I had found something at  AIX Toolbox for Open Source Software : What's New

    but that has only been updated 6 times in the past year, and the Toolbox team does far more than it shows there.

    Thanks again



    ------------------------------
    Michael Shon
    ------------------------------