linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rather odd NIS problem
@ 2003-03-19 11:24 Paul Furness
  2003-03-19 13:54 ` Yu Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Furness @ 2003-03-19 11:24 UTC (permalink / raw)
  To: linux-admin

Hello.

I have a reccuring problem with NIS. My main production NIS server won't
let me change any passwords. The system is a completely new system which
I have built from the ground up to replace the old, failing one. It is
based around RedHat 7.3 with updates; the kernel version is
2.4.18-24.7.x, ypserv is version 2.5-2.7x, ypbind is 1.10-7, and
yp-tools is 2.6-4.

Although the setup (in terms of the files which are shared) is the same
as the original system (which did work ok), the config files are the new
default ones, edited by me. Also, I have needed to edit the Makefile in
/var/yp so as to share the correct things as the correct names. The
changes I made were based on comparing the old files with the new ones,
so I didn't simply copy all the old stuff into the new places.

Anyhow, ypserv, ypbind and yppasswdd all start fine, and the domain is
shared correctly and works. I have moved everything over to using this
domain, and removed the old NIS server. Everything else works fine, but
when I try and change a user's password, this happens:

# yppasswd furnesp
Changing NIS account information for furnesp on antonia.vil.ite.mee.com.
Please enter root password:
Changing NIS password for furnesp on antonia.vil.ite.mee.com.
Please enter new password: 
Please retype new password:
Error while changing the NIS password.
The NIS password has not been changed on antonia.vil.ite.mee.com.
#

(obviosly, I enter the appropriate passwords when prompted!)

If I try to "su - user" first, I still get the same output (asking for
user's old password instead of root password).

Incidentally, I did wonder if the password I was using was too simple,
but the problem happens with very strong passwords as well.

It may or may not affect it, but I am not using passwd or group file in
/etc; all the files are in /var/yp/ypfiles. I have edited the
configuration in the Makefile to take account of this, and it works
fine. If I manually enter a new user into /var/yp/ypfiles/passwd, and
copy/paste a password from an existing account into the password field,
then do a make, the new user account appears correctly in the NIS, and
the password works. Oh, and I am not using a shadow file at all.


For brevity, I haven't copied the Makefile to this email, but below is
/etc/ypserv.conf and yp.conf. If anyone wants to look at the Makefile,
I'll send it to you off list.

Has anyone seen this problem before?

Tks.

Paul.

-----------

yp.conf:
 <SNIP>

domain vilnis broadcast

</SNIP>

ypserv.conf:
<SNIP>

dns: no

files: 30

xfr_check_port: yes

# Host                     : Domain  : Map              : Security

*                          : *       : *                : none
</SNIP>



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

-- 
Paul Furness

Systems Manager
Visual Information Lab
Mitsubsihi Electric ITE BV
Guildford, UK
 __________________________________________________________
|  Fight Spam! Join EuroCAUCE: http://www.euro.cauce.org/  |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-19 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-19 11:24 Rather odd NIS problem Paul Furness
2003-03-19 13:54 ` Yu Chen
2003-03-19 14:10   ` Paul Furness

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).