LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2004, 07:14 PM   #1
clinton
Member
 
Registered: Oct 2003
Location: Vancouver
Distribution: RH Enterprise AS 3
Posts: 47

Rep: Reputation: 15
Question Adding NIS users


Hi everyone,

I need some assistance adding a user to my NIS domain.

I configured NIS on the server as a master server and as a client. I also started ypserv, ypbind, and yppasswdd.

I made a copy of /etc/passwd, /etc/group and /etc/shadow and placed them in /var/yp/ypfiles/

I also removed the root user from the copied file because I am using different root passwords on all my clients and don't want them to be the same (ie. managed by NIS).

Everything seems to have started ok. But I am not sure how add a user! I did a typical "useradd", and that made an entry in /etc/passwd but not in /var/yp/ypfiles/passwd. I would expect then that when I execute "make -C /var/yp" to update the NIS maps the new user won't be present.

I think copying the appropriate lines from /etc/* to /var/yp/ypfiles/* would do the trick, but that doesn't sound like it's the best way to do it.

Can anyone help please?

Thanks.
 
Old 07-23-2004, 02:59 PM   #2
clinton
Member
 
Registered: Oct 2003
Location: Vancouver
Distribution: RH Enterprise AS 3
Posts: 47

Original Poster
Rep: Reputation: 15
I have done some extra thinking on my problem.

It looks like I am missing some configuration to specify /var/yp/ypfiles as the source for the files stored there.

The results of executing "make -C /var/yp" is the following:

---------------------------------------------------------------------------------------
make: Entering directory `/var/yp'
gmake[1]: Entering directory `/var/yp/mynisdomain'
Updating netid.byname...
gmake[1]: Leaving directory `/var/yp/mynisdomain'
make: Leaving directory `/var/yp'
---------------------------------------------------------------------------------------

What this says to me is that passwd, group, etc. are not being update. (BTW my actual nisdomain is not mynisdomain, i just used it in this post).

Executing "ypcat hosts" displays all the proper hostnames, but "ypcat passwd" displays nothing.

(Part of) My NIS Makefile looks like this:

---------------------------------------------------------------------------------------
YPPWDDIR = /var/yp/ypfiles
---------------------------------------------------------------------------------------

and in this directory I have passwd, group, shadow and gshadow. Permissions on these files are 644 (passwd and group) and 400 (shadow and gshadow)

It looks like I am missing some other configuration to specify /var/yp/ypfiles as the source for the files stored there.

Can anyone suggest what (if anything) I may be missing? I'm pretty stymied.

The systems distro is RH Enterprise AS 3

Thanks for any help you can provide.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
authenticate samba users using the NIS manojthakkar Linux - Networking 1 07-25-2005 07:48 PM
Creating NIS Users spelltoronto Linux - Newbie 2 05-18-2005 12:04 AM
Users can't login into NIS Client mrsharky Linux - Networking 19 02-28-2005 02:53 PM
authenticate samba users using the NIS manojthakkar Linux - General 1 02-02-2004 02:25 PM
authenticate samba users using the NIS manojthakkar Linux - Newbie 1 02-02-2004 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration