Operating System - HP-UX
1833588 Members
4295 Online
110061 Solutions
New Discussion

Is there a way to add restricted SAM access via a script?

 
SOLVED
Go to solution
Scott Lindstrom_2
Regular Advisor

Is there a way to add restricted SAM access via a script?

I need to add Restricted SAM access to a variety of users to a variety of servers, and would like to see if there is a way to write a script to do this (rather than logging on to each server and executing SAM there). Is there a command to do what sam -r does?

Scott
4 REPLIES 4
Michael Tully
Honored Contributor

Re: Is there a way to add restricted SAM access via a script?

Not sure, but you could use one server to do the test to see what get's logged into the sam viewer log. If it of any benefit you create a script around what is in the log.
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Is there a way to add restricted SAM access via a script?

Hi Scott,

If your idea is to copy the same configuration for all the users across all the systems, setup one user with the required access using "sam -r".

Go to /etc/sam/custom and copy .cf file to /etc/sam/custom directory on the other servers. To make it work for another user, simply copy it as .cf file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Scott Lindstrom_2
Regular Advisor

Re: Is there a way to add restricted SAM access via a script?

I looked at the same log, but unlike for other types of operations, there was no obvious command logged.
Scott Lindstrom_2
Regular Advisor

Re: Is there a way to add restricted SAM access via a script?

Setting up an average user, then copying and renaming that file as needed seems to work.

Thanks!

Scott