1748182 Members
3509 Online
108759 Solutions
New Discussion юеВ

Restrict SAM

 
SOLVED
Go to solution
LucianoCarvalho
Respected Contributor

Restrict SAM

Hi guys!
I'm trying to create a restrict sam for a user but when a I log in with that user and try to enter sam I receive the folowing error:
you must have superuser privilege(root) to
enter SAM

Does anyone have any clue?
The file /etc/sam/custom/user.cf has been created.

thanks in advance
14 REPLIES 14
Pete Randall
Outstanding Contributor

Re: Restrict SAM

While logged in as root, run "sam -r" to configure the restricted SAM session for the user. Then log in as the user and run sam.


Pete

Pete
LucianoCarvalho
Respected Contributor

Re: Restrict SAM

Thanks Pete, but I did that and the error is still happening.
John Meissner
Esteemed Contributor

Re: Restrict SAM

We go one step further...

1-loging as root
2-type "sam -r" to setup restricted sam
3-set the users start up program to /usr/sbin/sam

this way he can only use sam on the system.
All paths lead to destiny
S.K. Chan
Honored Contributor

Re: Restrict SAM

You should have 3 files created if this is setup correctly ..
/etc/sam/custom/user_name.cf
/etc/sam/custom/user_name.tp
/etc/sam/sam_custom.cu
Are they all there ?
LucianoCarvalho
Respected Contributor

Re: Restrict SAM

Hi Chan.
I just have the following files:
/etc/sam/custom/user.cf
/etc/sam/custom/default.tp

this same configuration is working on another machine.
It is a hp-ux 11.00.
Pete Randall
Outstanding Contributor

Re: Restrict SAM

Luciano,

The only files I see are the user.cf file and a "default.tp" file. It works for me on 11.11 that's not terribly up to date with patches (PHCO_24118 is the latest SAM patch I have). What OS and patch level are you dealing with?


Pete

Pete
Helen French
Honored Contributor

Re: Restrict SAM

Is this happens only when you invoke restricted SAM? Can you run normal SAM session? Are root or root equivalent?
Life is a promise, fulfill it!
LucianoCarvalho
Respected Contributor

Re: Restrict SAM

It happens when I'm logged with a ordinary user and execute /usr/sbin/sam. The same message apears when there is a restrict sam configured to the user and when there is no restrict sam configured.
LucianoCarvalho
Respected Contributor

Re: Restrict SAM

I have patch PHCO_23876 installed.