NIS,yp, can't login

NIS,yp, can't login

Post by mike hard » Tue, 28 Aug 2001 06:37:47



Howdy -

At work I'm trying to set up my Linux PC (RH7.1) as an NIS client to allow
me to login using my account on the NIS server (and hopefully get
automount working to mount my home dir).  yp/nisdomainname, ypbind,
etc. are all set up on my PC according to a how-to (forgot which).  I can
run rpcinfo* and get results just as the how-to claims I should.  I can
mount my NIS home dir no problem (all this done as root on my PC).  But I
can't log on to my NIS-land user acct.  Everytime I do I get an error
stating "Unknown user" (or something to that effect).  I'm pretty sure I
tried adding +::::: to my PC's /etc/passwd.  Do I need more than just
blank fields?  Does the admin have to do something more?  On my PC I can
do 'yppasswd | grep <acct>' and see my account exists in NIS-land.  Can
someone tell me what I'm missing so that I can log on?

Thanks...

Mike
--

------------------------

Auntie Em: Hate you, hate Kansas; took the dog - Dorothy

 
 
 

NIS,yp, can't login

Post by Dean Thompso » Tue, 28 Aug 2001 09:04:28


Hi!,

Quote:> At work I'm trying to set up my Linux PC (RH7.1) as an NIS client to allow
> me to login using my account on the NIS server (and hopefully get
> automount working to mount my home dir).  yp/nisdomainname, ypbind,
> etc. are all set up on my PC according to a how-to (forgot which).  I can
> run rpcinfo* and get results just as the how-to claims I should.  I can
> mount my NIS home dir no problem (all this done as root on my PC).  But I
> can't log on to my NIS-land user acct.  Everytime I do I get an error
> stating "Unknown user" (or something to that effect).  I'm pretty sure I
> tried adding +::::: to my PC's /etc/passwd.  Do I need more than just
> blank fields?  Does the admin have to do something more?  On my PC I can
> do 'yppasswd | grep <acct>' and see my account exists in NIS-land.  Can
> someone tell me what I'm missing so that I can log on?

What is your NIS server, is it a Linux box or is it another box like a Solaris
box ?, it sounds like you have done the setting up of the client correctly,
including the +:::::: at the bottom of the /etc/passwd file.  One other test
to perform is try to perform a "finger" on the local machine for an account
which doesn't exist locally but exists on the NIS server.  If you can see that
users details on your system, then you know that everything looks okay from
the client side.

I am only concerned that there might be a incompatability between the password
files on the client and on the server.  This may especially be the case if
there is shadow passwording being used.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

1. Can't login using yp/nis !

although following instructions in NIS-HOWTO and reading all FAQ's i could
find, i'm still not able to login to my linux machines using

        ypserv-1.2.5
        ypbind-3.3
        yp-tools-1.2

the funny thing is, i can do 'ypcat passwd' and even change users passwords
with yppasswd ... but a normal user isn't able to login! might there be a
problem with these packages in conjunction with the shadow password system?
i only found hints, that it isn't that easy ...

i got 4 linux machines, one is running as the master, the 3 others as
slaves. this part works. the 4 communicate and exchange datas ...

the master is running ypserv and yppasswdd, the three others ypserv and
ypbind.

what could be wrong? why can i change my password as a user (when su'ing
from root) but not login ?

thanx in advance for any hints,

        Harry


  ( o.o )   http://oeh.tu-graz.ac.at/~harry                    | me 4 my
   > ^ <    private  phone: +43 (316) 84 72 73                 | public
   Sally    business phone: +43 (316) 873 5843, fax: 873 5116  | PGP Key

2. CfP: Distributed Objects and Components Security (DOCsec) Workshop

3. Jumpstart and NIS (yp) problem with 'locale'

4. Redhat 6.0 & PPP Question

5. : Jumpstart and NIS (yp) problem with 'locale'

6. NIS login problem

7. YP/NIS on RiscOS version 'ancient'

8. Help: How to change CUPS default printer resolution?

9. Login to NIS (yp) client as user shows $USER as root!

10. NIS/YP: local user cannot login

11. yp/nis login.access ???

12. YP,NIS,user logins

13. Reasonable nis security between Solaris & Linux (was Re: Is nis (yp) a security worry?