yppasswd on the cliant problem

yppasswd on the cliant problem

Post by vmirina » Fri, 22 Jun 2001 02:30:04



To whom ever who can help

        Recently I built a dual homed host {Linux Redhat  2.4.4 i686}
& configured it as an NIS server for my internal network {eth1 for the
otside
world, eth0 internal network}. My NIS version is (ypbind-1.7-0.6.x with
yp-tools-2.4-4, ypbind-1.7-0.6.x).

        My client was able to bind to my server propertly and 'ypcat passwd'
also worked corectly. I was able to log in to my client as a user resolved
correctly via ypbind from my server. The only problem was that when I ran
yppasswd as that user I got an error.  
                                        Unknown error
                                        yppasswd: unknown user (uid=500).

I have made changes to the make file in /var/yp/Makefile. Here I am just
noting what I have changed with <--.
#
# Makefile for the NIS databases
#
# This Makefile should only be run on the NIS master server of a domain.
# All updated maps will be pushed to all NIS slave servers listed in the
# /var/yp/ypservers file. Please make sure that the hostnames of all
# NIS servers in your domain are listed in /var/yp/ypservers.
#
# This Makefile can be modified to support more NIS maps if desired.
#
# Should we merge the passwd file with the shadow file ?
# MERGE_PASSWD=true|false
MERGE_PASSWD=false  <--
#
......
#   --> I got rid of the hosts below
all:  passwd group shadow rpc services netid protocols networks mail          # netgrp shadow publickey networks ethers bootparams printcap         # amd.home auto.master auto.home auto.local passwd.adjunct         # timezone locale netmasks

########################################################################
#                                                                      #
#  DON'T EDIT ANYTHING BELOW IF YOU DON'T KNOW WHAT YOU ARE DOING !!!  #
#                                                                      #
########################################################################

DBLOAD = /usr/lib/yp/makedbm -c -m `$(YPBINDIR)/yphelper --hostname`
MKNETID = $(YPBINDIR)/mknetid
YPPUSH = $(YPSBINDIR)/yppush
MERGER = $(YPBINDIR)/yphelper
DOMAIN = `basename \`pwd\``
LOCALDOMAIN = `/bin/domainname`
REVNETGROUP = $(YPBINDIR)/revnetgroup
CREATE_PRINTCAP = $(YPBINDIR)/create_printcap

#ethers:                ethers.byname ethers.byaddr
#hosts:         hosts.byname hosts.byaddr     <-- I have commented out
hosts
networks:       networks.byaddr networks.byname
protocols:      protocols.bynumber protocols.byname
rpc:            rpc.byname rpc.bynumber
services:       services.byname services.byservicename
passwd:         passwd.byname passwd.byuid
group:          group.byname group.bygid
shadow:         shadow.byname
#passwd.adjunct:        passwd.adjunct.byname
netid:          netid.byname
#netgrp:                netgroup netgroup.byhost netgroup.byuser
#publickey:     publickey.byname
mail:           mail.aliases
#timezone:      timezone.byname
#locale:                locale.byname
#netmasks:      netmasks.byaddr
#
#
....

And it seemed to work correctly. The main change I made was adding the
reference to the shadow ( since this new version of NIS allows this)  file
and
eliminating the reference to a hosts file.

What could be the reason for this error? Could this also be of certain
concern
to my NIS security?

--
Posted via CNET Help.com
http://www.help.com/

 
 
 

yppasswd on the cliant problem

Post by Dean Thompso » Fri, 22 Jun 2001 10:33:46


Hi!,

Quote:> Recently I built a dual homed host {Linux Redhat  2.4.4 i686}
> & configured it as an NIS server for my internal network {eth1 for the
> otside
> world, eth0 internal network}. My NIS version is (ypbind-1.7-0.6.x with
> yp-tools-2.4-4, ypbind-1.7-0.6.x).

> My client was able to bind to my server propertly and 'ypcat passwd'
> also worked corectly. I was able to log in to my client as a user resolved
> correctly via ypbind from my server. The only problem was that when I ran
> yppasswd as that user I got an error.
>                                         Unknown error
>                                         yppasswd: unknown user (uid=500).

I haven't played around with the new version of NIS (or at least the one that
is meant to shadow passwords correctly), but you might want to check to make
sure that yppasswdd (the yp password daemon on the server) knows that you wish
to play around with the shadow password file.  From memory, I think you have
to specify an additional flag to help out the daemon.

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. Transfering file from server to cliant and vice versa

i am trying to write a short program that will allow me to upload and
download files from a server. The server needs to be listening for the
cliants request at all times. When the cliant is run the user will
have to input the server I.P. address.
Can anyone give me any suggestions as to where i could find code that
will do the above? all and any help greatfully accepted.
Thanks to all in advance.

2. printing

3. Transfering files from server to cliant and vice versa

4. HELP: PS/2 mouse(in keyboard)

5. darwin streaming server problem

6. rpc.yppasswd problem

7. DSL Setup

8. NIS yppasswd problem

9. yppasswd problem

10. problems with NIS/NYS ypserv and yppasswd

11. yppasswd problem