Solved

Regular user to run useradd?

Posted on 2003-10-24
5
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

630 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