SUMMARY: Can't change password
Clemens Schmuck (clemens@wst.edvz.sbg.ac.at)
Thu, 24 Apr 1997 06:19:52 +0200 (MET DST)
sorry for beeing late with this summary ... here is my original question:
----------
today i tried to change the root passwd on my ultra1/170, solaris 2.5.1
but i was not able to do so. i'm running nis (yp) and my entries in the
nsswitch.conf are passwd: compat passwd_compat nis when i try to change
the systems root passwd (su -> passwd root) nothing happens: 2
root@dwst22:>passwd root
root@dwst22:>
what is wrong??
---------
later on i sent a more detailed description of my problem:
---------
on my ultra 1/170 running solaris 2.5.1, nis (yp) master server i can't
change the root password.
when typing:
passwd root or
passwd -r files root
simply nothing happens, the same it is with all passwords in
/etc/passwd. (i got the nis tables under /var/yp/src).
the configuration in my nsswitch.conf:
passwd: compat
i ran truss on the passwd command and found out that lseek (see below)
exits with a "permission denied error". so of course i checked all(?) the
permissions (at least all that could have effects on the passwd command,
i lookd at the truss output to get the apropriate filenames)
the orginal output of truss:
fork() = 18154
Received signal #18, SIGCLD, in waitid() [default]
siginfo: SIGCLD CLD_KILLED pid=18154 status=0x000B
waitid(P_PID, 18154, 0xEFFFE830, WEXITED|WTRAPPED) = 0
lseek(0, 0, SEEK_CUR) = 10502
_exit(1)
end of output
the lseek line in the truss output already seems to be wrong caue compared
to another machines output:
fork() = 23992
Received signal #18, SIGCLD, in waitid() [default]
siginfo: SIGCLD CLD_EXITED pid=23992 status=0x0000
waitid(P_PID, 23992, 0xEFFFE918, WEXITED|WTRAPPED) = 0
open("/dev/tty", O_RDONLY) = 3
sigaction(SIGINT, 0xEFFFE718, 0xEFFFE818) = 0
end of output
---------
SOLUTION:
the reason for this strange problem was simply a false entry in the
/etc/passwd and /etc/shadow.
here is i - hope the correct - syntax:
****/etc/passwd
nobody4:x:65534:65534:SunOS 4.x Nobody:/:
+user::::::
+:*:0:0:::/bin/false
***/etc/shadow
nobody4:NP:6445::::::
+clemens::::::::
+:NP:::::::
THANKS TO:
Jim Harmon
mcleandl@spacecoas
Ken Franco
Rasana Atreya
System Administrat ( ? )
Peter M Allan
clemens.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clemens schmuck
university of salzburg
hellbrunnerstr. 34 clemens@wst.edvz.sbg.ac.at
5020 salzburg, austria http://www.edvz.sbg.ac.at/~clemens
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~