Solved

Regular user to run useradd?

Posted on 2003-10-24
5
359 Views
Last Modified: 2013-12-27
Ok. So I need to be able to setup a general account that users will login in with. This account will run a script that, basically, creates a user account for them on the machine. I know this isnt a very clean way of doing this, but bear with me.
So my question is, how can I setup permissions for this general account to be able to to run the useradd command without giving the account same access as ROOT? What would be the best way of doing this? Thanks much.
0
Comment
Question by:wauger
5 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 125 total points
ID: 9614445
sudo
Download and install sudo from www.sunfreeware.com
and configure it (with /usr/local/sbin/visudo) to allow that user to run the useradd command.
The entry will look something like:

user_name ALL = NOPASSWD: /sbin/useradd
0
 
LVL 6

Assisted Solution

by:durindil
durindil earned 125 total points
ID: 9615268
On Solaris 8 or 9 create an RBAC role with a user creation profile.  Then assign this role to the user account.  You can give granular root access this way.
0
 
LVL 2

Expert Comment

by:CadburyKat
ID: 10169576
chmod 4711 /usr/sbin/useradd
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question