Solaris 10 adduser | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Solaris 10 adduser

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-29-2012
yellow_mustard yellow_mustard is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 29 June 2012, 7:26 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Solaris 10 adduser

Brain teaser,

I was given the task below. I believe the consultant runs software on his laptop that probes our QA tier web servers for xxx The two web servers are xxx


I attempt useradd command on XXX which seems to work, but when I attempt to assign a pwd, the OS denies it and says user doesn't exist.
Code:
myserver# useradd -c "test user" -d /export/home/xxxxxx -m xxxxxx
root@myserver# passwd xxxxx
passwd: User unknown: xxxxxx
Permission denied

I look in /etc/shadow and /etc/passwd and the 'xxxxxx' acct is not found. ( / root partition is not 100%.)

I do the same command on the other server and it works as designed: new acct exists and pwd can be modified.


I've looked in /var/adm logs for some type of error, but I don't see any.

Help appreciated

Moderator's Comments:
Please view this code tag video for how to use code tags when posting code and data.

Last edited by vbe; 06-30-2012 at 05:45 AM..
Sponsored Links
    #2  
Old 06-30-2012
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 18 September 2014, 7:40 AM EDT
Location: Cornwall, UK
Posts: 809
Thanks: 41
Thanked 153 Times in 138 Posts
Is there an automounter running?

What Solaris platform and version is this?

This sounds familiar but I haven't come across it recently so you may get more informed replies to you post.

I think the 'adduser' script tries to create the new users home directory first and if there's an automounter in use, it is denied permission to do that. The adduser script then aborts and doesn't complete (ie, do the other necessary stuff).

I would try to create the new users home directory yourself and include in the automounter 'home' directories file, and when that's done, run adduser again without the -d switch.

Hope that helps.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Adduser -> Access denied Castelior Red Hat 3 07-28-2011 04:35 AM
How to automate adduser on FreeBSD? siegfried Shell Programming and Scripting 5 03-17-2011 02:39 PM
exec a build command (adduser) in a script guyr Shell Programming and Scripting 2 08-18-2009 05:02 AM
shell script for nessus-adduser nolamiami Shell Programming and Scripting 1 07-24-2009 01:44 PM
adduser esham Programming 1 11-18-2005 07:21 AM



All times are GMT -4. The time now is 07:50 AM.