robert3975
MIS
- Oct 22, 2004
- 26
Version Sun OS 5.8
Background
We have over 200 users on this box, and I was wanting to give our helpdesk a access to create add and delete users.
So I wrote a menu with options for add user, del user ect
It works fine however you must be a root user! NB I can point a user to only access theis app and log them out after.
Problem
I'm really nervous about tampering with the security (P45) etc.... I can't use sudo, but can use su however I do not want to give the root password + no windows rubbish. Also there has been no sysadm users setup there is only root etc/user_attr I'm assuming that it is using all other users as standard. Futhermore if logon as root and vi the user_attr it is read only which indicates a command needed.
Q1. If I create a standard user is the command to change there role smrole or rolemod? And does this write to the user_attr?
Could someone give an example and explain as I'm really unsure?
Big Thanks to anyone who can help!
Background
We have over 200 users on this box, and I was wanting to give our helpdesk a access to create add and delete users.
So I wrote a menu with options for add user, del user ect
It works fine however you must be a root user! NB I can point a user to only access theis app and log them out after.
Problem
I'm really nervous about tampering with the security (P45) etc.... I can't use sudo, but can use su however I do not want to give the root password + no windows rubbish. Also there has been no sysadm users setup there is only root etc/user_attr I'm assuming that it is using all other users as standard. Futhermore if logon as root and vi the user_attr it is read only which indicates a command needed.
Q1. If I create a standard user is the command to change there role smrole or rolemod? And does this write to the user_attr?
Could someone give an example and explain as I'm really unsure?
Big Thanks to anyone who can help!