Solved

Regular user to run useradd?

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

776 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