Big Problem with nis: can't log in!
Hi!
I have a really big and strange problem. I set up a new server with Suse 9.2 prof.. The server is also a NIS-Server and NIS ist working. I copied the entrys in passwd and group from the old to the new server and I can log in to every machine (being IRIX, HPUX, AIX, Solaris, other Linuxes). But if I create a new account I can't log in to it! I don't get any error message, it's just ignored! Logging in local to the server ist no problem, ypcat passwd shows the right entry and everything looks fine. Please help me, I really don't know what to do any more. :-( Greeting, rot |
Not a suse user so don't know what the useradd/adduser script does; but for NIS after a user is added to the server it is necessary to cd /var/yp and make (as root) to generate new passwd/shadow files.
|
why dont you try pushing the data from old server to the new one and then sync them
|
I did a make in /var/yp, the correct entry is shown by "ypcat passwd"! But nevertheless I can't login to new accounts, also if I create the account manualy.
|
can u provide some tit-bits of your file configuration. Hope it wuld help in getting the problem fixed
|
@bramhastra: The problem is, that I need a new account. The old accounts transfered to the new server work fine. Of course I can create the new account on the old server, but should I always do so? This is not really a solution, only a workaround...
And what are "tit-bits". Sorry, but I'm not very often writing to forums where I need so speak english. |
well what i meant is that if you could provide some information about the configuration file if wuld give us some help sorting the problem
|
Ok, I try to provide everything that could be important...
My /etc/ypserv.conf Code:
dns: no Code:
# old:HpU44GMT/9PEI:530:30:old user:/home/users/old:/bin/tcsh new:9q/a8KNHXbfMY:515:30:new user:/home/users/new:/bin/tcsh /etc/passwd on server old:x:530:30:old user:/home/users/old:/bin/tcsh new:x:515:30:new user:/home/users/new:/bin/tcsh /etc/shadow on server old:HpU44GMT/9PEI:12451:0:10000:::: new:9q/a8KNHXbfMY:10000:0:10000:::: I think, that are the important things, if I missed something, just ask for it. :newbie: |
make nopush as false and then use the command ypinit -m to trace the result
Also have you checked for the value NISSERVER= |
Mmh, nopush=false is only needed, if I have slave servers, but I don't have any.
Where should the value NISSERVER= be found? What I simply can't understand: Why are the old entrys working, while the new accounts don't? |
well it is contended in /etc/inet/nis.conf file
|
ok now tell me one thing are the old one and new one both connected. Do they have the same domain name or different
have you checked out this |
Ok, the file /etc/inet/nis.conf doesn't exist on Suse? At least I can't find it...
The new server is connected to the same domain etc, and everything ist working fine. At least until I tried to create a new account. I get the error message: old@aldea~:su - new Password: su: incorrect password But the password I typed is correct, I tried several times and it is not very complex. ;) This happens on every workstation, on the server everything is fine. Perhaps something with the encoding of the password from the new account or somethin like that? :confused: |
this seems to be a authentication problem.
What you say is local login working fine on server but the remote login does not work. have you checked nsswitch and krb file |
Yes, that's correct. But also old nis accounts work on remote machines. nsswitch is ok (else the old accounts wouldn't work, too).
krb is not really in use and I don't know how to work with that. configs are all standard-suse and should not be the problem, should they? |
All times are GMT -5. The time now is 03:27 PM. |