Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004
    Posts
    12

    Unanswered: Help needed (0403-006 Execute permission denied)

    I am working on AIX 5.2.0.0

    I am unable to execute any of the scripts or .profile

    [/udb/home/udbpa024]>ls -l .profile
    -rw-r--r-- 1 udbpa024 dbspa024 703 Jan 04 08:11 .profile

    [/udb/home/udbpa024]>. .profile
    ksh: /udb/home/udbpa024: 0403-006 Execute permission denied

    [/udb/home/udbpa024]>id
    uid=205(udbpa024) gid=214(dbspa024) groups=1(staff)

    I have set the PATH in .profile
    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
    export PATH

    Even when i try to execute any other test script it is giving me same error

    [/udb/home/udbpa024]>ls -l test
    -rwx------ 1 udbpa024 dbspa024 1 Jan 04 08:14 test
    [/udb/home/udbpa024]>ksh test
    ksh: test: 0403-006 Execute permission denied.

    [/udb/home/udbpa024]>lsuser udbpa024
    udbpa024 id=205 pgrp=dbspa024 groups=dbspa024,staff home=/udb/home/udbpa024 she
    l=/usr/bin/ksh roles=


    can some one suggest what is going on

    thank you

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    ... and what are the permissions of the '/usr/bin/ksh'?
    Also.... in any of your scripts do you specify the shell interpreter to use? [#!/bin/ksh] or something?
    vlad
    +-----------------------+
    | #include <disclaimer.h> |
    +-----------------------+

  3. #3
    Join Date
    Sep 2004
    Posts
    12
    I am very sorry , i am calling another script from my .profile
    so there is some typo in that

    thank you very much for your suggestions

  4. #4
    Join Date
    Jan 2005
    Posts
    1

    Smile

    just curious... what is the difference between using #!/usr/bin/ksh and #!/bin/ksh ?


    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •