NIS : auth problem with Linux nis server and SUN sparc nis client

Discussion in 'Linux Networking' started by froggay, Mar 8, 2006.

  1. froggay

    froggay Guest


    I'v found some very old message about this problem in this group, but
    there was no solution.

    I' ve set up a NIS server on a Linux machine ( ubuntu 5.01)
    following this howto

    everything seems to be ok
    my sun machine is binded to ypserv on linux
    inv09748 ( my linux nis server)

    but when i try to log with cao8 => " incorrect login"

    i can only log with root

    loggued with root in can do :
    su - cao8
    and it works fine

    so ... if someone can help, i will be very gracefull

    (sorry for my english, i'm french)
    froggay, Mar 8, 2006
    1. Advertisements

  2. Here one can see MD5 hash in the second field.
    But Solaris (up to version 8; not sure about 9 and 10)
    stores passwords differently. They are crypt()ed, and
    represented by 13-character-long sequences. On Linux
    one can mix crypt()ed passwords (for some users) with
    MD5 hashes (for others) in /etc/shadow.
    Andrei Ivanov, Mar 8, 2006
    1. Advertisements

  3. froggay

    froggay Guest

    you were right.

    the encrypted password differ between linux and sun

    /etc/shadow from linux machine

    /etc/shadow from sun (for the same password)

    so here's the solve

    i made a /etc/shadow-nis with the encrypted password (by sun) on linux
    nis server

    and a /etc/passwd-nis ( to avoid mess with local linux user)

    i modified the /var/yp/Makefile with the following

    PASSWD = $(YPPWDDIR)/passwd-nis
    SHADOW = $(YPPWDDIR)/shadow-nis

    and everything went fine !!
    (well after also a modification for auto.master (linux) /
    auto_master(sun) )
    froggay, Mar 9, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.