Date: Tue, 1 Aug 2000 09:12:41 +0200 From: "=?iso-8859-1?Q?Philipp_Gasch=FCtz?=" <philipp@gng.de> To: "Ganizani Phiri" <ganizani@malawi.net>, "Enno Davids" <nconedd@peppermint.national.com.au> Cc: <freebsd-isp@FreeBSD.ORG>, <randy@qualcomm.com>, <freebsd-questions@FreeBSD.ORG>, <qpopper@lists.pensive.org> Subject: RE: How can I disable FreeBsd Users Message-ID: <NDBBJJJHELBJEKKBPEECCECOCDAA.philipp@gng.de> In-Reply-To: <128781159372793904056@lists.pensive.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBJJJHELBJEKKBPEECCECOCDAA.philipp>