LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris 1.1 Password Issue -- users can't log in with password (https://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-1-1-password-issue-users-cant-log-in-with-password-4175652179/)

tony764 04-15-2019 08:25 AM

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!

scasey 04-15-2019 08:55 AM

The commands to run, as root, should be useradd and passwd...the password cannot be set by manupulating /etc/passwd or /etc/shadow directly.

jlliagre 04-15-2019 05:48 PM

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.

tony764 04-16-2019 07:54 AM

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!

MadeInGermany 08-28-2019 03:08 PM

Perhaps there is a + line in /etc/passwd ? Disable it! Dito with /etc/group.

If it does not work, kill ybind and disable autostart of ypbind (eventually ypbind is run by a script ypstart that is run by /etc/rc.local - it is 3 decades ago that I met SunOS 4.1)


All times are GMT -5. The time now is 12:37 PM.