AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Unable to install sudo after rootvg crashed

  • 1.  Unable to install sudo after rootvg crashed

    Posted Wed June 20, 2012 09:41 PM

    Originally posted by: Cognos_help


    Hello All,

    My rootvg of AIX 4.3.3 had been crashed so I restored AIX by using mksys backup tape. After that every thing seem working except some apps like sodu.

    I've been trying to install sudo on an AIX 4.3.3 box but it fails on dependencies. I download and install sudo-1.6.6.0 from http://ftp.rge.com/pub/systems/aix/bull/. The installation went through without any error. However, when I try to use sudo, there is error:

    exec(): 0509-036 Cannot load program sudo because of the following errors:
    0509-130 Symbol resolution failed for sudo because:
    0509-136 Symbol isblank (number 124) is not exported from
    dependent module /usr/lib/libc.a(shr.o).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    I'm really not sure what to look for and I was wondering if anyone had any pointers to figure this out ?
    thank you!

    Pham
    #AIX-Forum


  • 2.  Re: Unable to install sudo after rootvg crashed

    Posted Wed June 20, 2012 11:11 PM

    Originally posted by: mmveiga


    WOW AIX 4.3 ... is the asynchronous I/O device enabled ?
    To check run :
    
    lsdev -Cc aio
    

    To enable it run :
    
    mkdev -l aio0
    

    To make it permanent :
    
    chdev -l aio0 -a autoconfig=available -P
    


    Hope this helps.

    Marcelo.
    #AIX-Forum


  • 3.  Re: Unable to install sudo after rootvg crashed

    Posted Thu June 21, 2012 01:37 AM

    Originally posted by: Cognos_help


    Hi,

    It's aivalable. When I check:

    #lsdev -Cc aio
    aio0 Available Asynchronous I/O

    Any idea?
    #AIX-Forum


  • 4.  Re: Unable to install sudo after rootvg crashed

    Posted Thu June 21, 2012 09:34 AM

    Originally posted by: mmveiga


    I thought that was an error message I saw years ago related to AIO.

    Are you sure the binaries you have are for AIX 4.3 ? That is a very old AIX version. If they are for AIX 4.3, did you try applying the last MLP available on IBM's fixcentral ?

    Last suggestion would be to download source code for an old version of sudo supported on AIX 4.3 and compile.

    Regards,
    Marcelo.
    #AIX-Forum


  • 5.  Re: Unable to install sudo after rootvg crashed

    Posted Thu June 21, 2012 09:35 PM

    Originally posted by: Cognos_help


    In the web site where I download sudo it said that it's for AIX 4.3.3.

    Any idea how to fix this?
    #AIX-Forum


  • 6.  Re: Unable to install sudo after rootvg crashed

    Posted Thu June 21, 2012 10:30 PM

    Originally posted by: mmveiga


    Did you try to download and apply the last MLP for AIX 4.3.3 ? You can find it on https://www14.software.ibm.com/webapp/set2/sas/f/aix433fixes/home.html

    Regards,
    Marcelo
    #AIX-Forum


  • 7.  Re: Unable to install sudo after rootvg crashed

    Posted Mon June 25, 2012 10:10 PM

    Originally posted by: Cognos_help


    Hi Marcelo,

    I have installed the last MLP for AIX 4.3.3 and now sudo is working. However, when I try to use sudo with "crontab -e", there is error:

    0602-134 An error occurred while reading input.

    Any idea hwo to fix this?

    Thx.

    Pham
    #AIX-Forum


  • 8.  Re: Unable to install sudo after rootvg crashed

    Posted Tue June 26, 2012 10:13 AM

    Originally posted by: mmveiga


    Pham

    Can you send the line from /etc/sudoers where you are giving access to run crontab and also the full sudo command you are trying to run ?

    Was this working before your server crashed or is this something new you are trying to do ? I am not going to ask the details of what you are trying to accomplish with this, but there are security implications on giving up this kind of access.

    Regards,
    Marcelo.
    #AIX-Forum


  • 9.  Re: Unable to install sudo after rootvg crashed

    Posted Tue June 26, 2012 09:25 PM

    Originally posted by: Cognos_help


    Hi Marcelo,

    Here is the part of /etc/sudoers where I have granted permission to user (lch) to run crontan. But the error still insists.

    lch ALL = NOPASSWD: /usr/bin/crontab -e

    The command when I log in as user ID "lch" to use crontab is:

    $ sudo crontab -e

    There are error"

    crontab: 0481-124 Cannot create the cron file in the /usr/spool/cron/crontabs directory

    But the content of crontab is listed, but when I press Ctl F to scorll down to see the list, there is other error:

    ex: 0602-134 An error occurred while reading input

    At this point, the console is hang.

    Ani idea?

    Thx

    Pham
    #AIX-Forum


  • 10.  Re: Unable to install sudo after rootvg crashed

    Posted Tue June 26, 2012 11:04 PM

    Originally posted by: mmveiga


    Pham,

    Did you check the status of the /var or /tmp filesystems:
    1) Any errors in the error log ?
    2) Are any of those filesystems full ?
    3) Can you create files on them ?
    4) Can you successfully run crontab -e as root ?

    Regards,
    Marcelo.
    #AIX-Forum


  • 11.  Re: Unable to install sudo after rootvg crashed

    Posted Tue June 26, 2012 11:12 PM

    Originally posted by: Cognos_help


    Hi Marcelo,

    1) Q: Any errors in the error log ? A: How can I check error log in this case (where it is?)

    2) Q:Are any of those filesystems full ? A: None of them is full .Here is the check using df -k

    Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
    /dev/hd2 983040 218544 78% 32373 14% /usr
    /dev/hd9var 262144 166492 37% 871 2% /var

    3) Q: Can you create files on them ? A: Yes, I can touch a new file on them

    4) Q: Can you successfully run crontab -e as root ? A: Yes, if I login as root, I can use crontab -e without any problem.

    Any idea?

    Pham
    #AIX-Forum


  • 12.  Re: Unable to install sudo after rootvg crashed

    Posted Tue June 26, 2012 11:14 PM

    Originally posted by: Cognos_help


    Hi Marcelo,

    The /tmp also is not full

    Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
    /dev/hd3 131072 67960 49% 420 2% /tmp
    #AIX-Forum


  • 13.  Re: Unable to install sudo after rootvg crashed

    Posted Wed June 27, 2012 10:49 AM

    Originally posted by: dave-e


    my understanding of sudo is dated but I seem to remember that you need to issue the command exactly as coded in the sudoers file.

    So what happens if you issue the command as
    sudo /usr/bin/crontab -e
    #AIX-Forum


  • 14.  Re: Unable to install sudo after rootvg crashed

    Posted Wed June 27, 2012 09:28 PM

    Originally posted by: Cognos_help


    Hi,

    I have tried this:

    sudo /usr/bin/crontab -e

    But the same error happens.

    Any idea?

    Thx

    Pham
    #AIX-Forum


  • 15.  Re: Unable to install sudo after rootvg crashed

    Posted Wed June 27, 2012 09:35 PM

    Originally posted by: mmveiga


    Pham,

    I thought it could be either an issue with filesystem, either disk error or filesystem full. To read the error log you run the errpt command. At the moment I cannot think about anything else.

    Regards,
    Marcelo.
    #AIX-Forum


  • 16.  Re: Unable to install sudo after rootvg crashed

    Posted Wed June 27, 2012 09:40 PM

    Originally posted by: Cognos_help


    Hi,

    I cannot find any error at all. All the file systems are not full/corrupt. The strange thing is this issue happens in both 2 our server: Production and Test. On those servers I have installed the same sudo-1.6.6.0 from http://ftp.rge.com/pub/systems/aix/bull/.

    Any idea how to fix this?

    Thx

    Pham
    #AIX-Forum


  • 17.  Re: Unable to install sudo after rootvg crashed

    Posted Thu June 28, 2012 08:56 AM

    Originally posted by: sajjadhashimi


    lch ALL = NOPASSWD: /usr/bin/crontab -e

    Can you try;

    1. taking lch ALL=NOPASSWD:/usr/bin/crontab -e

    2. check /var/adm/cron/cron.allow and see if lch is in there? if its not, add it (as root).
    #AIX-Forum


  • 18.  Re: Unable to install sudo after rootvg crashed

    Posted Thu June 28, 2012 09:00 AM

    Originally posted by: sajjadhashimi


    RE: 1. I meant to say, taking spaces out from the sudoer's entry and use what I wrote. Sorry.
    #AIX-Forum


  • 19.  Re: Unable to install sudo after rootvg crashed

    Posted Thu June 28, 2012 10:24 PM

    Originally posted by: Cognos_help


    Hi all,

    I have managed to fix this by installing the latest sudo (sudo.1.8.5.2).

    Thx a lot for help.

    Pham
    #AIX-Forum