Solved

Regular user to run useradd?

Posted on 2003-10-24
5
354 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.

709 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now