From owner-freebsd-questions Thu Apr 1 13: 9: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from foundation.umsl.edu (foundation.umsl.edu [134.124.15.22]) by hub.freebsd.org (Postfix) with ESMTP id 309DE14C7F for ; Thu, 1 Apr 1999 13:09:04 -0800 (PST) (envelope-from tk@umsl.edu) Received: from localhost (localhost [127.0.0.1]) by foundation.umsl.edu (8.8.7/8.8.7) with ESMTP id PAA11101; Thu, 1 Apr 1999 15:01:40 -0600 Date: Thu, 1 Apr 1999 15:01:40 -0600 (EST) From: Tom Kyle To: Mike Tancsa Cc: questions@FreeBSD.ORG Subject: Re: making /usr/bin/passwd the 'shell' In-Reply-To: <3.0.5.32.19990401130517.00cc6410@staff.sentex.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike, one way to do it would be to make accounts as usual, but make their 'login' directory a symbolic link to a default directory with a .login script that only lets them change their password. That way, in case you need to convert the account, all you have to do is remove the link and create the login directory, which is nice in case you have to convert a lot of accounts over NIS... A sample .login: #!/bin/csh onintr end /usr/bin/passwd end: logout Tom Kyle Jr Unix Admin University of Missouri-St. Louis tom@foundation.umsl.edu On Thu, 1 Apr 1999, Mike Tancsa wrote: > > Hi, > I dont want to give some of my users shell access, but I want them to be > able to change their password. What would be the implications of setting > their shell to /usr/bin/passwd ? Are there any more prefered/safer ways of > doing this ? > > ---Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message