1847937 Members
3789 Online
104021 Solutions
New Discussion

kmtune problem

 
SOLVED
Go to solution
Tommy  Cusan
New Member

kmtune problem

Hi everybody,
I have a problem when I run kmtune as user other than root.
$ /usr/sbin/kmtune
kmtune: Cannot write file -- /stand/.kmsystune_lock

$ ls -alt /stand
There is no file name .kmsystune_lock
Is anybody know how to fix this ? Thanks.
9 REPLIES 9
harry d brown jr
Honored Contributor

Re: kmtune problem

You shouldn't fix it, unless you want to change the permissions on the /stand directory, which could lead to serious security issues.

live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor

Re: kmtune problem

If you got these patches installed ..
a) PHCO_25342 s700_800 11.00 Kernel configuration commands patch
b) PHCO_25429 s700_800 11.11 Kernel configuration commands patch
..then non-root user will not be able to query the kernel tunables.
Tommy  Cusan
New Member

Re: kmtune problem

I have the same permission on the other box where I can run kmtune successfully not as root.
$ ls -ld /stand
dr-xr-xr-x 7 bin bin 1024 Mar 6 18:02 /stand
S.K. Chan
Honored Contributor

Re: kmtune problem

..sorry ..
those patches implement the lock file that you're seeing, it all good, to prevent non-root users from potentially corrupting the system.
harry d brown jr
Honored Contributor

Re: kmtune problem

Tommy,

You are right, my boxes show the same permissions. Looks as if S.K.Chan has the solution: patch patch patch....

live free or die
harry
Live Free or Die
Tommy  Cusan
New Member

Re: kmtune problem

I'm using HP-UX 11.00.
I run this command and I didn't find the patch.
/usr/sbin/swlist -l product | grep PHCO_25342
Tommy  Cusan
New Member

Re: kmtune problem

Maybe the patch was superseded ?
Tommy  Cusan
New Member

Re: kmtune problem

Chan, I think you're right. Thanks.
The patch number is different but I have this patch installed on the machine that I failed to run kmtune. I didn't find on the other machine which I can run kmtune.

PHCO_24112 1.0 Kernel configuration commands patch
S.K. Chan
Honored Contributor
Solution

Re: kmtune problem

PHCO_24112 was replaced by PHCO_25342. SO I bet you got PHCO_24112 installed. If yes, then normal users can't use kmtune.

I got an 11.0 system with PHCO_24112 and I can't run kmtune as non-root user also.