LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-15-2019, 08:25 AM   #1
tony764
LQ Newbie
 
Registered: Apr 2019
Posts: 2

Rep: Reputation: Disabled
Solaris 1.1 Password Issue -- users can't log in with password


I am trying to resurrect an old SPARC running Solaris 1.1. I am having issues assigning passwords to user accounts. I can create the accounts, but once the user account sets up a password, the account cannot log in (the user account simply sees a Login Incorrect message). I have created the account by adding the user to the /etc/passwd and the /etc/security/passwd.adjunct files, and setting up its home directory. The user is set up as the owner of its home directory. The user then attempts to log in, but once the Password prompt appears every attempt is rejected. If I remove the password indicator (the '*') from the /etc/passwd file, the user can log in smoothly (but without a password). I have tried setting up the user password from within the new user account and from the root account, with the same result either way.

I have checked the syslog entries and the logs under /var/adm but have seen no indication there of where the problem might be. The new password is being acknowledged and encrypted properly in the passwd.adjunct file whenever it gets set up or modified. Unfortunately I don't have the adduser command in the system so I have been unable to test it that way.


Any ideas on what might be missing? Thanks!
 
Old 04-15-2019, 08:55 AM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 2,913

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
The commands to run, as root, should be useradd and passwd...the password cannot be set by manupulating /etc/passwd or /etc/shadow directly.
 
Old 04-15-2019, 05:48 PM   #3
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
Assuming it is really Solaris 1.1 (better known as SunOS 4.1.3), the procedure was :

Code:
/usr/etc/install/add_user username uid gid gecos home shell
then

either as root or as the user

Code:
passwd [username]
This should update /etc/passwd (or maybe /etc/shadow).

The fact passwd.adjunct is modified seems to imply NIS is used.

In such case, you might try yppasswd or just disable NIS.
 
Old 04-16-2019, 07:54 AM   #4
tony764
LQ Newbie
 
Registered: Apr 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you for your suggestions. Yes, this really is a Solaris 1.1 machine. We do have NIS enabled -- what's the best way to disable it? Thanks!
 
  


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
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
[SOLVED] after installation of MySQL could not log into mysql using temporary password in /var/log/mysqld.log User247 Linux - Server 2 12-25-2017 09:31 AM
[SOLVED] Can't log in with GDM (or GUI) but can log in via CLI with no password after updates. kev717 Sabayon 1 09-12-2010 06:12 PM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM

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

All times are GMT -5. The time now is 10:40 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