Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
first I want to excuse myself for any mistakes in the text, since I am not an English native speaker.
A colleague asked me to setup two virtual machines, both running with SUSE Linux Enterprise Server 11, and also to use NIS.
My problem now is that I cannot login to the client-server as user, only root is working.
I know there already have been quite a lot of posts regarding this problem, but I haven't found a solution that worked for me yet. Even so I use linux for some years; I am new to the whole administrator thing.
When I try to login to the client via ssh I always get: " Permissions on the password data base may be too restrictive."
Is there anything else, I should have done after setting up NIS?
As far as I did understand the NIS how-to documentation, I should have been able to login to the client after the set up was finished.
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
You have to have 1 NIS server running. Not one on both machines.
You have to have NIS client running at least on the client. It is up to you if you want to run it on the NIS server as well.
Check the default settings on the NIS server. Is server enabled?
Check the default settings on the NIS client. Is client enabled?
On the client kill ypbind, and start it with sudo ypbind -debug. What do you see.
How did you configure the VM network? You should have uses a bridged network adapter on the server as to allow access from outside.
How did you configure yp.conf. Does it hold the server IP address and not the name?
What is the contents of hosts.allow?
Hello and thank you for your answer.
Maybe I made a mistake in expressing the problem, but there is only one NIS server.
I checked the settings on the master server and the client with Yast and the master is enabled on the master server and the same goes for the client.
When I ran sudo ypbind -debug I get the output:
parsing config file
Trying entry: ypserver <IP-address of master server>
parsed ypserver <IP>
ass_server() domain: <domain>, host: <IP>, slot:0
[Welcome to ypbind-mt, version 1.22]
Ping interval is 20 seconds
NetworkManager is not running.
Ping host '<IP>', domain '<domain>'
Answer for domain '<domain>' from server '<IP>'
Pinging all active servers.
Pinging all active servers.
I skipped the initial numbers, but as far as I understand there shouldn't be any problems.
I am not sure how the VM network is configured and if there is such an adapter.
The yp.conf on the client holds the IP address of the master.
Following are the contents of hosts.allow:
in.rshd: XXX.XXX.XX. (<- IP of the master without the last to numbers)
I just run ypcat passwd and got a list of all users and their home directories among other things.
So in /var/log/messages I didn't found anythiny mentioning nis or yp. For syslog and auth.log, they don't exist in my /var/log directory. I only found syslog in /etc/logrotate.d and /etc/sysconfig, but I guess those aren't the files you meant.
Then it’s necessary to distribute this map too. Normal users can’t execute ypcat shadow on this. There is also the option to join passwd and shadow maps (so that it’s sufficient to distribute passwd map), but I wouldn’t recommend to do so, as then the hash value will be output on a ypcat passwd.