SUMMARY: Any restrictions with NIS emulation mode?

From: Jeremy Jin _at_ Nucleus (_at_)
Date: 10/08/03

  • Next message: bbb bb: "USB keyboard/mouse need put on dedicate port?"
    To: <sunmanagers@sunmanagers.org>
    Date: Wed, 8 Oct 2003 14:59:45 -0600
    
    

    I got only one reply from Paul Kennedy who didn't give me a direct solution
    but a debug point,

    ---------------
    The NP stands for "No Privelege" and you need to run keylogin (on your NIS+
    server) to deal with this problem.
    ---------------

    Yes, what he said *NP* is the problem I have. Since NIS+ has security
    restrictions, unauthorized clients won't be able to read some information
    from NIS+ server. But NIS clients don't have this security feature, so my
    Linux NIS client cannot read password from NIS server.

    "keylogin" doesn't help for a NIS clients, actually NIS clients don't have
    security feature. I read NIS+ Administration Guide and find a solution, run
    the following command,

    "nistbladm -u "passwd=na+r" passwd.org_dir.mydomain.com.
    "nistbladm -u "shadow=na+r" passwd.org_dir.mydomain.com.

    Then the Linux NIS client could read password from NIS+ server and the login
    problem was solved. But of course, the NIS+ loses the important security
    feature. Any unauthorized client could read the password now.

    Not sure why, the Linux world doesn't like the security feature of NIS+. NIS
    is more popular than NIS+ in Linux world.

    Jeremy

    -----Original Message-----
    Hello,

    I setup a Solaris machine as NIS+ server and a Linux computer as NIS+
    client, I can login the NIS+ client without any problem.

    Because NIS+ client for Linux is not so popular, so I tried to change it to
    NIS client. At first, I run NIS+ server in NIS emulation mode, then I
    followed all steps in NIS/NIS+ HOWTO to setup the NIS client.
    (change /etc/nsswitch.conf, /etc/pam.d/login).

    Then I run "ypcat passwd", it can show the passwd table. (but the password
    filed is NP )

    Then I run autofs, if I "cd /home/user-a", it can automaticly mount
    /home/user-a.

    But I can NOT login as a user whose name is in passwd table. This is the
    only problem with my NIS client.

    Error messages in /var/log/messages,
    --------------
    Oct 7 14:48:57 linux login(pam_unix)[2068]: authentication failure;
    logname= uid=0 euid=0 tty=pts/1 ruser= rhost=host-a user=user-a
    Oct 7 14:48:59 linux login[2068]: FAILED LOGIN 1 FROM host-a FOR user-a,
    Authentication failure
    ----------------

    I read carefully the NIS howto document and some other articles, I didn't
    find anything wrong with my configuration. So I have to ask, is this problem
    caused by NIS server instead of client?

    I did find somebody ask the similar question (only the error message
    different), but I didn't find any summary for that question, so I don't know
    if that guy solved this problem.

    Thanks in advance!

    Jeremy
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: bbb bb: "USB keyboard/mouse need put on dedicate port?"

    Relevant Pages

    • Re: [SLE] What to do at School
      ... > The switchover to Linux, Suse 9.1 specifically, is a done deal. ... > now is a RedHat Linux server spoofing an NT domain for authentication ... The Unix way would NFS for shares, and NIS for authentication. ...
      (SuSE)
    • RE: sunmanagers Digest, Vol 9, Issue 45
      ... I've got linux Redhat7.2 machine client of Solaris server. ... The autofs daemon is however configured to start at boot, ... Thus I should add entries on /etc/auto.master file for my NIS maps to be ...
      (SunManagers)
    • Re: NIS - FreeBSD server and Linux clients
      ... > ypcat on the Linux client, it is obtaining information from the server. ... it is faiing to authenticate users defined on the FreeBSD machine. ... authenticating NIS accounts against a FreeBSD server. ...
      (freebsd-questions)
    • paaswd: Authentication service cannot retrieve authentication info.
      ... college I want to set up a server -client system using nis. ... to changing passwords for any user, say user funny, as follows ... linux:~# cat /etc/nsswitch.conf ...
      (Debian-User)
    • paaswd: Authentication service cannot retrieve authentication info.
      ... college I want to set up a server -client system using nis. ... to changing passwords for any user, say user funny, as follows ... linux:~# cat /etc/nsswitch.conf ...
      (Debian-User)