From owner-freebsd-questions Wed Oct 4 17:39:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id B7B7D37B66D for ; Wed, 4 Oct 2000 17:39:35 -0700 (PDT) Received: by static.unixfreak.org (Postfix, from userid 1000) id 80C371F0F; Wed, 4 Oct 2000 17:39:35 -0700 (PDT) Subject: Re: NIS password changing In-Reply-To: from servex at "Oct 4, 2000 05:44:47 am" To: servex Date: Wed, 4 Oct 2000 17:39:35 -0700 (PDT) Cc: freebsd-questions@freebsd.org From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20001005003935.80C371F0F@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 who` works). Just a thought. Hope this helps -- Dima Dorfman 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message