cancel
Showing results for 
Search instead for 
Did you mean: 

Error in cstm with a normal user

 
SOLVED
Go to solution
Highlighted
Occasional Contributor

Error in cstm with a normal user

Hello. We're running version A.31.00 of cstm on a HP-UX 11.11 server. I'm experiencing the following problem within cstm when is executed by another user (not root):

$ whoami
pulso
$ /usr/sbin/cstm
Running Command File (/usr/sbin/stm/ui/config/.stmrc).

-- Error --
The device map could not be retrieved for the current Unit Under Test (UUT)
system, hostname (xpto.server.pt), due to the following error.

The system will be disconnected.
The device map could not be retrieved from the Unit Under Test (UUT) system due
to permission problems on the UUT system.
Please Refer to the UI Activity Log for more details.

-- Information --
Support Tools Manager


Version A.31.00

Product Number B4708AA

(C) Copyright Hewlett Packard Co. 1995-2001
All Rights Reserved

Use of this program is subject to the licensing restrictions described
in "Help-->On Version". HP shall not be liable for any damages resulting
from misuse or unauthorized use of this program.

-- Information --
Aborting all open command files.

cstm>

With user root everything runs fine.
6 REPLIES 6
Highlighted
Exalted Contributor

Re: Error in cstm with a normal user

Shalom,

cstm is a root tool, far as I know.

If your user really needs it you can give it over as sudo.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Occasional Contributor

Re: Error in cstm with a normal user

In other systems, users can execute cstm.
There is a example with a HPUX 11.00 system:

xd00198@abcd[/home/xd00198] /usr/sbin/cstm
Running Command File (/usr/sbin/stm/ui/config/.stmrc).

-- Information --
Support Tools Manager


Version A.38.00

Product Number B4708AA

(C) Copyright Hewlett Packard Co. 1995-2002
All Rights Reserved

Use of this program is subject to the licensing restrictions described
in "Help-->On Version". HP shall not be liable for any damages resulting
from misuse or unauthorized use of this program.

cstm>selclass qualifier memory;info;wait;infolog
-- Updating Map --
Updating Map...
-- Converting a (4764) byte raw log file to text. --
Preparing the Information Tool Log for MEMORY on path 49 File ...

.... abcd.server.pt : ....

-- Information Tool Log for MEMORY on path 49 --

Log creation time: Mon Apr 28 16:52:11 2008

Hardware path: 49


Basic Memory Description

Module Type: MEMORY
Total Physical Memory : 2048 MB
Total Configured Memory : 2048 MB
Page Size: 4096 Bytes

Memory interleaving is supported on this machine and is ON.

Memory Board Inventory

Total Phys Configured Disabled
Board Size (MB) Total (MB) Total (MB)
------------ ---------- ---------- ----------
-- Information Tool Log for MEMORY on path 49 --
View - To View the file.
Print - To Print the file.
SaveAs - To Save the file.
Enter Done, Help, Print, SaveAs, or View: [Done]
cstm>
Highlighted
Honored Contributor
Solution

Re: Error in cstm with a normal user

I just tried it with a non root user on a server which I know has a standard STM installation on it and I get the same error. So on the server that allows non root users to run STM, something has changed.

So compare your two servers to find out what has changed. Places to look at,
i. Does that user have any root privilidges
ii. Check any binary in /usr/sbin/stm and all the subdirectories for SUID-root settings.
iii. Check the /var/stm/data files if they are globally writable.
iv. Compare settings in opt/resmon and /etc/opt/resmon.
Highlighted
Acclaimed Contributor

Re: Error in cstm with a normal user

Even your 11.00 system runs a newer version than your 11.11 system.

A.31.00 June 2002

A.38.00 March 2003

The latest for 11.11 is

A.59.00 December 2007


Update!

But I think only root can run the tools.


http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6191AAE

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Highlighted
Acclaimed Contributor

Re: Error in cstm with a normal user

I just tried to run the cstm info tool as a non root user - it works!

I used version A.57.00 for 11.11.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Highlighted
Honored Contributor

Re: Error in cstm with a normal user

STM tools are particularly sensitive to installation problems. I would update all of your servers to the latest version of STM and EMS. That should take care of the permission issues.


Bill Hassell, sysadmin