Operating System - HP-UX
1825766 Members
2131 Online
109687 Solutions
New Discussion

Re: Restricted sam question

 
SOLVED
Go to solution
Gary Glick
Frequent Advisor

Restricted sam question

I need to enable some restricted sam rights for a user that resides on 40 different systems. The same rights are to be enabled on each system. Is there an easy way to do this such as configure one system and then copy a config file out to each system or will I need to log in to each system and set it up manually.

thanks for any help

Gary
7 REPLIES 7
Marcel Boogert_1
Trusted Contributor
Solution

Re: Restricted sam question

Gary,

You can use rdist to achieve this. Be aware of the configuration of the .rhosts file.

MB.
Patrick Wallek
Honored Contributor

Re: Restricted sam question

Configure what you need on one system and then look in the /etc/sam/custom directory for *.cf files for each user you confiure.

You might be able to take those files from one machine and copy them to the rest of the machines. It is definitely worth a shot.

Pete Randall
Outstanding Contributor

Re: Restricted sam question

It would appear that you need to copy the following:

/etc/sam/custom (directory)
-and-
/etc/sam/custom.tasks

There may be more, but that's all I could see.


Pete

Pete
Gary Glick
Frequent Advisor

Re: Restricted sam question

Marcel,

Could you give me an example of the distfile for the rdist command. I'm getting confused as to what it wants.

Thanks

Gary
Marcel Boogert_1
Trusted Contributor

Re: Restricted sam question

Gary,

Trye the following:

# rdist -f /root/yourdistfile

Where your distfile looks like this:

HOSTS = ( SERVER2 SERVER3 )
FILES = ( /etc/hosts /root/.profile /etc/profile )
${FILES} -> ${HOSTS}
install -y ;

Be sure to configure your .rhosts file

MB
Scott Lindstrom_2
Regular Advisor

Re: Restricted sam question

I have successfully been doing what Patrick suggested (copying the .cf files).

Scott
Gary Glick
Frequent Advisor

Re: Restricted sam question

Thank you all,

Copying the config file from the /etc/sam/custom directory worked great.

Gary