AIX

AIX

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


#Power
#Power
 View Only
  • 1.  weird "at" command behavior

    Posted Wed December 16, 2009 04:19 PM

    Originally posted by: Ian_Guthrie


    I've got two AIX systems, both at 6100-03-01-0921. Both systems have
    the at binary at the exact same size so they are identical.On one
    system if I create a file called at.cmd with the following contents:

    export LIBPATH=/usr/lib:/usr/ibmcxx/lib:/usr/local/lib:/opt/IBM/db2/
    V9.5/lib64:.:/home/bncprod/lib:/cb/dev/rel4.8/bl1491/lib
    echo test >>$HOME/cblog.test 2>&1

    My test file is created and "test" is inserted into the file. On the
    other system, the job fails unless I chmod +x the actual at.cmd
    file. On the first system, the permissions are simply 644 and at.cmd
    is not executable.

    /var/adm/cron/log shows "ian : CMD ( ian.1260994697.a ) : PID
    ( 524480 ) : Wed Dec 16 15:18:17 2009
    Cron Job with pid: 524480 Failed

    /var/spool/mail/root contains:

    ksh[3]: at.cmd: 0403-006 Execute permission denied.

    This is messing up some jobs that our application is trying to
    run. . . any ideas wy this might e happening?
    I execute at via the command line like this:

    at now at.cmd
    #AIX-Forum


  • 2.  Re: weird "at" command behavior

    Posted Thu December 17, 2009 12:33 PM

    Originally posted by: flodstrom


    As what user are you running "at"? Are you writing to a NFS share (rw permissions)?

    Also check if you are allowed to use "at" (in case of non root user), "at.allow", "at.deny" in /var/adm/cron (see man page for at).
    #AIX-Forum


  • 3.  Re: weird "at" command behavior

    Posted Fri December 18, 2009 11:51 AM

    Originally posted by: Ian_Guthrie


    I've made the .profiles exactly the same (except editing for
    hostname). Umasks are the same, ulimits are the same. I've done an
    "env" on both systems and compared and except for hostname and
    username the environment variables are the same. Both tests are
    executed in /tmp/test with the permissions of the directory as below
    (one user is abccont, and the other abcprod.

    abcprod_[/tmp/test]ls -l /tmp/test
    total 8
    -rw-r--r-- 1 abcprod staff 158 Dec 18 11:21 at.cmd
    ancprod_[/tmp/test]ls -ld /tmp/test
    drwxr-xr-x 2 abcprod staff 256 Dec 18 11:21 /tmp/test
    I just don't get how "at" can fail on one but not the other?
    #AIX-Forum


  • 4.  Re: weird "at" command behavior

    Posted Mon December 21, 2009 02:15 PM

    Originally posted by: flodstrom


    Did you check the presence, and/or contents, of the at.allow and at.deny config files?

    Does at run normally as root on both systems? Also make sure that the permissions of the at binary file itself is ok (especially on the host that does not work), it's supposed to be a suid binary.

    Other than that I don't know what the problem might be? Although it sounds like the broken host has been "fixed" somehow. Are you the only person with root access to the hosts?
    #AIX-Forum