From owner-freebsd-questions Tue Aug 1 0:11:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nirwana.gng.de (nirwana.gng.de [194.123.204.122]) by hub.freebsd.org (Postfix) with ESMTP id 8E3F737B8DD; Tue, 1 Aug 2000 00:11:09 -0700 (PDT) (envelope-from philipp@gng.de) Received: from nt.hh.gng.de ([62.157.88.211] helo=nt) by nirwana.gng.de with smtp (Exim 3.12 #1) id 13JWCc-0008JE-00; Tue, 01 Aug 2000 09:11:02 +0200 From: "=?iso-8859-1?Q?Philipp_Gasch=FCtz?=" To: "Ganizani Phiri" , "Enno Davids" Cc: , , , Subject: RE: How can I disable FreeBsd Users Date: Tue, 1 Aug 2000 09:12:41 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 In-Reply-To: <128781159372793904056@lists.pensive.org> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey, I think it's far more easy to go via the shell. Have a look into - i think - pop_pass.c. There is a function which checks whether the user's shell is a valid shell. Now, if you are giving all users that you want to disable a shell such as popper.shell (which is a symlink to i.e. bash or false) and you add a couple of lines of code into pop_pass.c where you compare the shell retrieved by popper with "popper.shell", you are able to lock those out... hope this helps, -p > -----Original Message----- > From: Ganizani Phiri [mailto:ganizani@malawi.net] > Sent: Montag, 31. Juli 2000 09:30 > To: Enno Davids > Cc: freebsd-isp@FreeBSD.ORG; randy@qualcomm.com; > freebsd-questions@FreeBSD.ORG; qpopper@lists.pensive.org > Subject: How can I disable FreeBsd Users > > > I want to carry out a disconnection of my users.How do I go about it. > Can somebody please provide me with a script to disable and enable > a group of users. > > I want to do it like this. Have all the users in a file. A > script will read > from this > file and then disable the user in whatever file say password file. > > Thanks in advance. > > Ganizani > MalawiNet Limited > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message