1833845 Members
2192 Online
110063 Solutions
New Discussion

permission denied

 
bouserg_1
Advisor

permission denied

Hi,
I have executed kctune command with a normal user but i get this message error:
$ /usr/sbin/kctune
ERROR: The command is unable to lock the configuration 'current' for
reading: open: Permission denied

regards
8 REPLIES 8
Ganesan R
Honored Contributor

Re: permission denied

Hi,

It looks you are not having permission to execute the command kctune.

Either you need to give excute permission or use ACL

Best wishes,

Ganesh.
bouserg_1
Advisor

Re: permission denied

Thanks for reply,

here is permission for kctune:
ll /usr/sbin/kctune
-r-xr-xr-x 1 bin bin 780036 Jan 4 2008 /usr/sbin/kctune
And other think:that i can execute it in another server.

regards
Patrick Wallek
Honored Contributor

Re: permission denied

Check permissions on the /stand/current directory and its contents. You probably do not have permissions there for some reason.

Here are the permissions for /stand/current and its contents one of my systems.

# ll -d /stand/current
drwxr-xr-x 5 root sys 1024 Sep 12 15:25 /stand/current/

# ll /stand/current
total 55408
drwxr-xr-x 5 root sys 1024 Sep 12 15:25 ./
dr-xr-xr-x 7 bin bin 1024 Sep 19 16:54 ../
-rw-r--r-- 1 root sys 0 Sep 12 15:25 .config
-rw-r--r-- 1 root sys 147 Sep 12 15:25 README
drwxr-xr-x 3 root sys 1024 Sep 12 15:25 bootfs/
drwxr-xr-x 2 root sys 1024 Sep 19 16:56 krs/
drwxr-xr-x 2 root sys 1024 Sep 19 16:55 mod/
-rw-r--r-- 1 root sys 2698 Sep 19 16:56 system
-rwxr-xr-x 3 root sys 28214544 Sep 12 15:18 vmunix*
OldSchool
Honored Contributor

Re: permission denied

usually a non-root user wouldn't be changing the kernel parms (imho).

the issue is not with the permissions on kmtune, but the current as Patrick (and the error message) pointed out
bouserg_1
Advisor

Re: permission denied

Hi Patrick
it works now.
I have verified all files and found that
.config file with rw-------
i have modified it to rw-r--r--

thank you ,i'll assign points to you
bouserg_1
Advisor

Re: permission denied

thank's for your help
Dennis Handly
Acclaimed Contributor

Re: permission denied

>OldSchool: usually a non-root user wouldn't be changing the kernel parms

Yes but they should be able to look at them.

>the issue is not with the permissions on kmtune

If it is SETUID, then it could be a permission problem.
I think I remember the problem was with the initial versions of it. I assume it was latter patched because I don't remember still having problems with it.
V. Nyga
Honored Contributor

Re: permission denied

LOL - 4 pts for a solution

@bouserg - please read:
http://forums13.itrc.hp.com/service/forums/helptips.do?#34

keep on foruming
Volkmar
*** Say 'Thanks' with Kudos ***