slibclean: 0403-006 Execute permission


 
Thread Tools Search this Thread
Operating Systems AIX slibclean: 0403-006 Execute permission
# 1  
Old 05-17-2009
slibclean: 0403-006 Execute permission

Friends ,

I am going to update the oracle version from '10.2.0.1.0' to '10.2.0.4.0' in AIX 6.1 . During upgradation it needs to run the following script as root user :

sh /usr/sbin/slibclean

But when this script is run then it shows the following error :

# sh /usr/sbin/slibclean
sh: /usr/sbin/slibclean: 0403-006 Execute permission denied.
# cd /usr/sbin
# ls -al | grep slibclean
-rwxrwxrwx 1 root system 1968 Oct 13 2007 slibclean

# pwd
/usr/sbin
# ./slibclean
# sh slibclean
sh: slibclean: 0403-006 Execute permission denied.

Would anybody plz tell me where is the problem ?

Waiting for your kind reply ... ...
# 2  
Old 05-17-2009
Quote:
Originally Posted by shipon_97
[...]needs to run the following script as root user :

sh /usr/sbin/slibclean

But when this script is run then it shows the following error :

# sh /usr/sbin/slibclean
sh: /usr/sbin/slibclean: 0403-006 Execute permission denied.
# cd /usr/sbin
# ls -al | grep slibclean
-rwxrwxrwx 1 root system 1968 Oct 13 2007 slibclean
[...]
AFAIK slibclean can only be run by root or privileged users and therfore should have its permissions at 700. I also think that it is an executable file that should not be called with
Code:
# sh /usr/sbin/slibclean

As root, what does
Code:
# /usr/sbin/slibclean <enter>

return?
# 3  
Old 05-17-2009
sorry friend , no output is generated .

# /usr/sbin/slibclean
#
# 4  
Old 05-17-2009
Quote:
Originally Posted by shipon_97
sorry friend , no output is generated .

# /usr/sbin/slibclean
#
Well, that's just as it is supposed to be. I.e. it works. Smilie
# 5  
Old 05-17-2009
Thx shockneck,

Actually when I run the oracle 10.2.0.4 patchset runInstaller , then it needs to be run the above script (slibclear)before running runInstaller .

According to your advice , I run the script like : /usr/sbin/slibclear

and after running this script , when I go to run the runInstaller , then it does not start . so that I think the above "slibclear" script is not running ?

In this moment , any idea plz ?
# 6  
Old 05-17-2009
There is a difference between "slibclear" and "slibclean" you might notice.

I don't know "slibclear", but if it is a shell script (check with "file /usr/sbin/slibclear") you can either start it with "sh <scriptname>" or flag it as executable ("chmod u+x <scriptname>") first and then run it directly ("<scriptname>").

Probably "slibclean" (which flushes unused shared libraries from memory) is meant and the "sh" in front is just a typo.

I hope this helps.

bakunin
# 7  
Old 05-17-2009
sorry friend , it should be "slibclean" . It is my typing mistake ... ...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute permission for shell script

Hi All, I am not able to figure out what is the problem with calling a shell script within a shell script. i have given all the permissions to both schell scripts. but when i am seeing the log file error is coming like weekly_us_push_rpts_tst.sh: ./vacation_quota_summary_detail.sh: Execute... (9 Replies)
Discussion started by: krupasindhu18
9 Replies

2. Red Hat

Use of Execute permission for folder

Hi All, What is the use of execute permission for a folder. I know "for execute a file(script file) we have to provide execute permission to that respective file".But what is the use to give execute permission to folder.Is it equal to read permission ? Regards, Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies

3. Debian

Execute permission problem

Hello, I need to install a program from a DVD. It uses a sh script called setup. root@ragnok: head -2 /media/cdrom0/setup #!/bin/sh root@ragnok: ls -l /media/cdrom0/setup -r-xr-xr-x 1 root root 4688 Nov 8 08:38 /media/cdrom0/setup root@ragnok: /media/cdrom0/setup bash:... (2 Replies)
Discussion started by: snorkack59
2 Replies

4. UNIX for Dummies Questions & Answers

Getting Error 0403-006 Execute permission denied.

Hi All, Need your help.. I am writing one script in which I am assigning value to one variable but when i am executing it is showing error "0403-006 Execute permission denied" below is the line of that script : INPUT_COUNT=wc $GIF_DIR/input/VID_RIMS.DAT | awk '{print $1}' and access... (2 Replies)
Discussion started by: NirajThakar
2 Replies

5. Shell Programming and Scripting

Problem with execute my file permission

Here is my script. 1 echo -n "Enter file name : " 2 read file 3 chmod 777 $file 4 && W="write = yes" || W="Write = no" 5 chmod 777 $file 6 && X="Execute = yes" || X="Execute = No" 7 chmod 777 $file 8 && R="Read = yes" || R="Read = No" ... (0 Replies)
Discussion started by: qral_hdr
0 Replies

6. AIX

Do you need execute permission to navigate to a directory?

i have a user 'bart' which does not belong to apps group (as shown below) and i want him to be able to navigate to TEST directory.. i gave him read access but he cannot get through. when i added execute permission he was able to navigate to TEST drwxr-xr-- 3 draco apps 4096 Apr... (2 Replies)
Discussion started by: chipahoys
2 Replies

7. AIX

0403-006 Execute permission denied.

Hi i am running the below script in vio server, i changed to aix mode..then #./script1 </code> ##Set today Date as file name. vardate= date +"%m%d%y%H%M%S" varhost= hostname filename= "$varhost_$vardate" echo $filename </code> the output is ....... </code> # ./mount_test ... (6 Replies)
Discussion started by: honeym210
6 Replies

8. Shell Programming and Scripting

Only Execute Permission for Others...

This might be very silly question but i dont know y is it so... i Have script I have Given the permissions in the following manner... -rwxrwx--x 1 root system 3 Jun 08 15:46 temp I want no one to see what is present in that but should be able to execute it.. but when... (3 Replies)
Discussion started by: pbsrinivas
3 Replies

9. Shell Programming and Scripting

without execute permission

how can a script run without execute permissions. when i run myscript as : sh a.sh it was working but when i say simple a.sh its not working since it has no x permission.but how about fist case? (1 Reply)
Discussion started by: Raom
1 Replies

10. UNIX for Dummies Questions & Answers

No permission to execute file

I am logged in as root and am trying to execute a file called x_cleanup_equdata but keep getting the message ksh: x_cleanup_equdataNEW: 0403-006 Execute permission denied. I did FTP this file from another server using GET, would this make the difference? I tried chmod 666 but still no luck. ... (2 Replies)
Discussion started by: markbeeson
2 Replies
Login or Register to Ask a Question