Operating System - HP-UX
1847248 Members
3054 Online
110263 Solutions
New Discussion

add users using restricted SAM or sudo

 
Rick Garland
Honored Contributor

add users using restricted SAM or sudo

Hi all:

LDAP, NIS, NIS+ would be the ideal solution but unfortunately it is not allowed here. (Chalk it up to politics)

Working a script that will allow helpdesk personnel to add users to multiple HPUX systems via a ksh script. I have it done and it is using sudo to complete the task.

I have discovered that the helpdesk personnel use restricted SAM to add users and they go to each individual system to complete the task. They do not have the sudo rights.

My question - can I rework my script to have restricted SAM called from the command line to addusers across an enterprise? What woud be the restricted SAM command?

Thanks
2 REPLIES 2
John Guster
Trusted Contributor

Re: add users using restricted SAM or sudo

use restrict SAM is the way to go. To set, sam -r, in the GUI, select the user name for helpdesk, then ground it with accounts for users and groups.
Rick Garland
Honored Contributor

Re: add users using restricted SAM or sudo

But I do not want ther SAM GUI - add the users via command line