Solved

Regular user to run useradd?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

861 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

23 Experts available now in Live!

Get 1:1 Help Now