[Solaris 11.3] How to set password on new user account.
Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.