|
楼主 |
发表于 2005-10-30 10:44:17
|
显示全部楼层
More tests and I understand everything
1. It seems you don't need to run "yppasswd nisuser" to assign the initial nis password. Once after you run "ypinit -m" to build the database, the nis user get the same nis password as the local password.
2. Later if you want to change user password, two ways:
a. yppassed nisuser: it change both this user's nis password and local password, which means this user can log on server and client using the same password.
b. passwd nisuser, do NOT go to /var/yp to make.
it will only 改变服务器上的 /etc/passwd 和 /etc/shadow 文件, but will NOT change NIS服务器中 /var/yp 的文件. As a result, this user will use different password to log on local server and from remote client.
c. passwd nisuser and then /var/yp make ==> same as yppasswd. Local password and nis password are synchronized. |
|