If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Help needed (0403-006 Execute permission denied)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-05, 09:24
dbadam dbadam is offline
Registered User
 
Join Date: Sep 2004
Posts: 12
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
Reply With Quote
  #2 (permalink)  
Old 01-04-05, 11:55
vgersh99 vgersh99 is offline
Registered User
 
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> |
+-----------------------+
Reply With Quote
  #3 (permalink)  
Old 01-04-05, 14:48
dbadam dbadam is offline
Registered User
 
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
Reply With Quote
  #4 (permalink)  
Old 02-03-05, 03:16
kinchung kinchung is offline
Registered User
 
Join Date: Jan 2005
Posts: 1
Smile

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


Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On