Date: Thu, 05 Oct 2000 00:18:50 -0500 From: Mistro Servex <servex@servex.yi.org> To: dima@unixfreak.org Cc: freebsd-questions@freebsd.org Subject: Re: NIS password changing Message-ID: <39DC0F3A.41C67EA6@servex.yi.org> References: <20001005003935.80C371F0F@static.unixfreak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Dima Dorfman wrote: > > > Ok, two problems.. the first, this may be a stupid question, but when I > > use the pw useradd command, it adds the user to /var/yp/master.passwd, > > which is what I want, but after it does this, I cant change the password > > (because it doesn't have one?) im not sure how to go about this. Is there > > an easier way to do this? > > Are you running rpc.yppasswdd? See rpc.yppasswdd(8) for more > details. If that doesn't help, you could try leaving the password > field blank until you change it, or taking the MD5/DES hash from > another account, pasting it into that one, and then changing it. > > > > > second, im running an openbsd box as a mail server, nis works fine, but I > > add +:::::::::/sbin/nologin, and when I test it, it > > says.. su: /sbin/nologin : no such file or directory, when in fact the > > file does exist. Now, I realize this is probably an openbsd problem, but I > > thought id ask, just in case someone could tell me what was up. > > This works for me, only I use +:*::::::::/sbin/nologin. I believe > some SSH implementations allow users to run a command even if their > shell isn't valid (e.g., check if `ssh <user> who` works). Just a thought. > > Hope this helps > > -- > Dima Dorfman <dima@unixfreak.org> > Finger dima@unixfreak.org for my public PGP key. > > "Tell me what you need, and I'll tell you how to get along without it." > -- Dilbert Dima, Well, I figured it out. I did RTFM on rpc.yppasswdd, and really man passwd was what I needed. To change password of a user, I say ... passwd -y -d mydomain.com sampleuser, on the NIS_master box. Simple enough. Turns out that the problem with +:::::::::/sbin/nologin, was a corrupted master.passwd file (i.e. extra spaces or something). So, now, Im just trying to figure out the easiest way to add, remove, administer users. Basically im just reading man pages and stuff. But, I appreciate the reply, I posted the first message last night, with no sleep, and little patience. But, it always seems to be the little things I miss. Thanks again, servex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39DC0F3A.41C67EA6>