1826343 Members
4691 Online
109692 Solutions
New Discussion

sam users

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

sam users

Dear All
how can i make a certain user to work with sam ,which files to add users to or what command used to add users to work with sam ,i know that to make the user to work in a certain part of the sam i use the command sam -f login , but i want first the user to be enables in using sam , so how to do it
fadia.marei
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: sam users

Hi Fadia,

Start sam -r (restricted sam user), here you can add tasks for your users.

# sam -r

Regards,
Robert-Jan
Fadia Almarei
Super Advisor

Re: sam users

i think i can do it ,thanks
another question i restrict a user in using sam just for printing and routine tasks,when i try to open sam from the GUI it work , but when i open it from telnet it give me the following error message
"Running more than one SAM session from the same terminal port is not
allowed. SAM was unable to obtain a lock on the SAM session lock file
for this terminal port, "/var/sam/lock/lock_td", probably because
another SAM session has already been launched from this terminal port
and it owns the lock on the file. If you are not running more than one
SAM session, remove the above mentioned lock file."
i see that no another session is opened and i remove this file but nothing work .what should i do
fadia.marei
Steven E. Protter
Exalted Contributor

Re: sam users

You can only run 1 sam session as root or any other user.

You run sam -r as root to set up other users you want to grant limited sam functionality.

If that session terminates abnormally:

ps -f | grep sam

Some of the processes will be sam processes, carefully kill them.

"Running more than one SAM session from the same terminal port is not
allowed. SAM was unable to obtain a lock on the SAM session lock file
for this terminal port, "/var/sam/lock/lock_td", probably because
another SAM session has already been launched from this terminal port
and it owns the lock on the file. If you are not running more than one
SAM session, remove the above mentioned lock file."

If you are sure there is no other sam session, than go ahead and delete the lock file and keep working.

If sam hangs and leaves behind the lock file the warning message can be false.

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