Unix/Linux 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


Thread Tools Search this Thread Display Modes
Old Unix and Linux 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.
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:
Solaris 10 adduser 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
Old Unix and Linux 06-30-2012
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
Join Date: Feb 2012
Last Activity: 22 September 2017, 6:00 AM EDT
Location: Devon, UK
Posts: 1,460
Thanks: 190
Thanked 376 Times in 315 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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:31 AM.