NIS Problem

From: agung lesmana (alesmana@rtmglobal.com)
Date: Tue Feb 04 2003 - 05:55:45 EST


Hi, gurus

my friend is having a problem..could you guys help us..
Error:
T
his host (jkt-ns01) is NIS/yp master for our domain jkt.id.

We create 1 user, using the following scripts as follows:
jkt-ns01_root # ./nisnewuser.sh
Login (fr99999) : idxh823
Name (first lastname) : Andi
Home (default: /home/idxh823) :
Shell (default : /bin/ksh) :
Group : 10000
Login : idxh823
Name : Andi
Home : /home/idxh823
Shell : /bin/ksh
Group : 10000
Is this correct (y/n) ? y
6 blocks
updated passwd
pushed passwd
jkt-ns01_root #

What I get in the file /var/yp/src/passwd:
idxh823:x:11140:10000:Andi:/home/idxh823:/bin/ksh ---> this is normal

And on the file /var/yp/src/shadow:
idxh823:*LK*::::::: ---> this is normal

After this, as root, I define the passwd for this user as follows:
jkt-ns01_root # passwd idxh823
New password:
Re-enter new password:
NIS passwd/attributes changed on jkt-ns01

And what I get on /var/yp/src/passwd:
idxh823:NNy8C4CdX3vB6:11140:10000:Andi:/home/idxh823:/bin/ksh ---> abnormal

And /var/yp/src/shadow:
idxh823:*LK*::::::: ---> abnormal

The question is, why the 13-chars of encrypted password going to passwd file
instead of shadow file?

Because it will make the user can not log in to the system:
SunOS 5.8
login: idxh823
Password:
Login incorrect
login:

Eventhough, I still can change uid to this user using su command:
jkt-ns01_root # su - idxh823
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
$

Regards,
Agung Lesmana
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:45 EDT