The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
useradd earlysame55 Shell Programming and Scripting 4 08-28-2007 12:37 PM
[ksh] useradd chodaboy UNIX for Dummies Questions & Answers 3 06-30-2006 09:24 AM
useradd question thumper UNIX for Dummies Questions & Answers 1 03-14-2006 02:54 PM
useradd Selma SUN Solaris 4 06-13-2005 07:33 AM
useradd ortsvorsteher UNIX for Dummies Questions & Answers 6 05-30-2002 03:28 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-18-2004
dorilevy dorilevy is offline
Registered User
  
 

Join Date: Aug 2002
Posts: 18
useradd

Hi.

due to some needs i gave a user the premission to use useradd command with sudo.
i want to know if there is a way to let him set the initial password, without giving him the premission to use passwd command as root (sudo).

maybe a way to set a default password for all the new users that created????

BTW - im using sun-solaris 8.

Dori
  #2 (permalink)  
Old 10-18-2004
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
modify your sudoers file so that your

users can run command /usr/bin/passwd and /usr/sbin/userradd

so your /etc/sudoers file might look like

# User alias specification
User_Alias HELPDESK = userA, userB, userC, UserD

# Cmnd alias specification
Cmnd_Alias ADMIN = /usr/bin/passwd /usr/sbin/useradd

# User privilege specification
HELPDESK ALL=ADMIN


when userA login in userA can set password by issuing

sudo passwd "username"

userB, userC and userD can also set password without the for root access
  #3 (permalink)  
Old 10-19-2004
dorilevy dorilevy is offline
Registered User
  
 

Join Date: Aug 2002
Posts: 18
Thanks!

Thank you for the quick reply, I will try it.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0