NIS Problem

2007-12-25 0:30:00

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

Comments

Got something to say?

You must be logged in to post a comment.