LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-31-2017, 12:31 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[Solaris 11.3] How to set password on new user account.


I've just created a new user account via the command line but when I try to set the password for the user, it says password can't be set. The user's entry in the shadow file shows UP which means this account has not yet been activated by the administrator and cannot be used.

I've run pwck and there's no error.

Not sure what I need to do to set password so that this user can login.

Thanks.
 
Old 03-31-2017, 11:02 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
When you did the set up you were root (or su -)? Did the account show in /etc/passwd and /etc/group? Was a home directory created? Are there appropriate user entries in /etc/group (and, of course, in /etc/passwd; login name, numerical user ID, numerical group ID, user name of comment field, user home directory, optional user command interpreter)? There should be an 'x' in the encrypted password field in /etc/passwd indicating that the password is actually stored in /etc/shadow.

Basically, if you've got all that set, you should be able to, as root, set the password (which will to in /etc/shadow).

Maybe do a little comparison checks on adjacent password and group entries?

That's my memory of Solaris which may have changed how you add user accounts (I dunno), but, dang it, Solaris is Unix and that should be how it'll work.

You might want to search Google for "solaris 11 add user" and review the steps detailed just in case.

Hope this is not way off-base and helps some.

Last edited by tronayne; 03-31-2017 at 02:12 PM.
 
Old 03-31-2017, 05:08 PM   #3
!!!
Member
 
Registered: Jan 2017
Posts: 666

Rep: Reputation: 289Reputation: 289Reputation: 289
From googl'ng, yea, probably some new fancy 11.3 security feature.
roles? nis (-r)? Privs: solaris.passwd.assign solaris.account.activate ?
Maybe: truss it, like strace -f
(maybe a SolarisGuru will find this Thread)

Last edited by !!!; 03-31-2017 at 05:42 PM.
 
Old 04-05-2017, 01:37 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Works fine here:

Code:
# cat /etc/release
                             Oracle Solaris 11.3 X86
  Copyright (c) 1983, 2015, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 06 October 2015
# useradd guest
# grep guest /etc/passwd /etc/shadow
/etc/passwd:guest:x:102:10::/export/home/guest:/usr/bin/bash
/etc/shadow:guest:UP:::::::
# passwd guest
New Password:
Re-enter new Password:
passwd: password successfully changed for guest
# grep guest /etc/shadow
guest:$5$2Kwa9Yp5$Pe5I5BLHUryINQycHlIQfIhk7.ShYEXXMBVMlb/PM/7:17261::::::
You should provide more information leading to a reproducible case.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password, how to check (using command), when user creates account, there will be a need to set a password. bosong Linux - Server 6 04-06-2016 03:39 AM
I cant log in to my Linux Mint user account using my user name and password itstraining Linux - Newbie 11 04-26-2012 07:20 PM
Expired Root Account/Password for Solaris 8 linux_pioneer Solaris / OpenSolaris 12 09-23-2007 02:23 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration