Re: NIS not working (now it is :-)

2003-03-12 Thread W. J. Williams

--- Mike Galvez [EMAIL PROTECTED] wrote:
 On Wed, Mar 12, 2003 at 12:19:01PM -0800, W. J. Williams wrote:
  see bottom..
   Try adding a test user with: pw useradd -Y -y /var/yp/master.passwd
   testuser
   
   Try logging into the master with the new user. Success? Try the
 client.
   
   HTH
   
 -Mike
   
  
  ***
  
  ok, thx. tried that...no dice...after adding the user with pw...I had
 to
  do a passwd testuser and add a password.  could not log client though.
  I
  am trying to open a ssh connection from master to clientany other
  ideas?
 
 Was that passwd or yppasswd? After the yppasswd, you will need to run
 make in /var/yp to propagate the change.
 
**

Hi Mike, thx for helping...seems it works now..here's what I did/learned.

I mirrored the rc.conf of all of my clients in my lab AND touched all
master.passwd files with vipw instead of vi  I can log into all of them
now with the testuser account. Some more things I learned (correct me if I
am wrong)

1.  always use vipw if you have to mess with master.passwd
2.  the order of what you call in rc.conf is important (I still don't know
what f order that is supposed to be, but it seemed to make a
difference.
3. after changing mapped files, you need to manually run make
=/etc/XXX nisdomain to udpate the files.

4.  per your email below...I made the account using your string, and then
did a passwd testuser to add a password.  should i have used yppassword?

hope someone else is gaining from this as well...

thx

Will

=
Will Williams

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: NIS not working (now it is :-)

2003-03-12 Thread Mike Galvez
On Wed, Mar 12, 2003 at 01:46:43PM -0800, W. J. Williams wrote:
 
 --- Mike Galvez [EMAIL PROTECTED] wrote:
  On Wed, Mar 12, 2003 at 12:19:01PM -0800, W. J. Williams wrote:
   see bottom..
Try adding a test user with: pw useradd -Y -y /var/yp/master.passwd
testuser

Try logging into the master with the new user. Success? Try the
  client.

HTH

-Mike

   
   ***
   
   ok, thx. tried that...no dice...after adding the user with pw...I had
  to
   do a passwd testuser and add a password.  could not log client though.
   I
   am trying to open a ssh connection from master to clientany other
   ideas?
  
  Was that passwd or yppasswd? After the yppasswd, you will need to run
  make in /var/yp to propagate the change.
  
 **
 
 Hi Mike, thx for helping...seems it works now..here's what I did/learned.
 
 I mirrored the rc.conf of all of my clients in my lab AND touched all
 master.passwd files with vipw instead of vi  I can log into all of them
 now with the testuser account. Some more things I learned (correct me if I
 am wrong)
 
 1.  always use vipw if you have to mess with master.passwd

True

 2.  the order of what you call in rc.conf is important (I still don't know
 what f order that is supposed to be, but it seemed to make a
 difference.
 3. after changing mapped files, you need to manually run make
 =/etc/XXX nisdomain to udpate the files.
 
 4.  per your email below...I made the account using your string, and then
 did a passwd testuser to add a password.  should i have used yppassword?

From the yppasswd man page: If a user exists in the NIS password database but does not
exist locally, passwd automatically switches into ``yppasswd'' mode.  If the specified 
user does not exist in either the local password database of the NIS password maps, 
passwd returns an error.


My reply with the pw useradd string should have been :

pw useradd testuser -m -Y -y /var/yp/master.passwd

omit -m if you don't want to build the users home folder.

 
 hope someone else is gaining from this as well...
 
 thx
 
 Will
 
 =
 Will Williams

-- 
Michael Galvez http://www.people.virginia.edu/~mrg8n
University of VirginiaMessenger Mail: Carruthers Hall

Fresco's Discovery:
If you knew what you were doing you'd probably be bored.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message