The problem about NIS
I set up the NIS Server and client.
NIS Server:Red Hat Enterprise Linux ES release 4 (Nahant Update 4) NIS Client:Red Hat Enterprise Linux AS release 3 (Taroon Update 6) What I wanna implement is when NIS client uses the command Code:
ypcat passwd Code:
dstest:x:500:500::/home/dstest:/bin/bash Code:
dstest:$1$6fC1ju5n$.431bYi.7bQdByaYtKjwo.:500:500::/home/dstest:/bin/bash |
I don't know how up to date this information is, but see:
7.6. Shadow Passwords with NIS http://www.linux-nis.org/nis-howto/H...up_client.html |
Why the root user can execute "ypcat passwd", but dstest can't.
I modified the file: /var/yp/Makefile. Here is the content:
Code:
B= I added the user name "dstest". And run the command "passwd dstest" and execute the "make" command. When I run the command "ypcat passwd" on the nis client as root, it displayed Code:
dstest:x:500:500::/home/dstest:/bin/bash Code:
No such map passwd.byname. Reason: No such map in server's domain Code:
Use "ethers" for map "ethers.byname" Code:
domain nistest server hostname.domainname.com # sorry, I can't tell you what the real name is Code:
passwd: files nis Code:
dns: no Code:
auth required pam_securetty.so Code:
auth required /lib/security/$ISA/pam_env.so Code:
id: dstest: No such user By the way, the all machines are in the same Lan. Please help me. Thank you very much! |
Could anyone pay attention to this problem? Many thanks!
|
I'm sorry, I'm rusty on NIS under Linux - its been a while.
You might need to reinitialize the NIS database, with /usr/lib/yp/ypinit -m. The Makefile compares the source timestamp (eg. /etc/passwd, /etc/shadow), and updates the destination (eg. .db) file if the source is newer than the existing .db file. I don't think the Makefile recognizes changes to itself. |
Hi,buddy:
After executing the command "/usr/lib/yp/ypinit -m" ,I compared the local /etc/passwd and /etc/shadow with /var/yp/nistest(nis domainname) on nis server. The time stamp of /var/yp/nistest/passwd.byname is more later than /etc/passwd and /etc/shadow. Then, what can we conclude? What am I gonna do next? |
Well, you can conclude the db file was updated. Did you test again afterwards ?
|
Sorry, where can I check those db files?
|
I checked the time stamp of all files under /var/yp/nistest. They are much later than /etc/passwd and /etc/shadow. What else?
|
Can anyone continue to answer this question?
|
[Solved] this issue
I sovled this problem.
I installed NIS on ubuntu. And make a rhel3 as NIS client. It works. That's it. I really appreciate Mr.C.'s help! |
OH, darn, I'm sorry I didn't get back to you. I've been busy up until tonight, and didn't have access to a Linux system to download the NIS server. But glad you got it working.
|
All times are GMT -5. The time now is 01:56 AM. |