*BSD News Article 71605


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!hookup!jussieu.fr!oleane!plug.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!uniol!uni-erlangen.de!news.th-darmstadt.de!hrz-ws11.hrz.uni-kassel.de!newsserver.rrzn.uni-hannover.de!tubsibr!malibu.ts.rz.tu-bs.de!not-for-
mail
From: mb@malibu.ts.rz.tu-bs.de (Martin Butkus)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help deleting a user
Date: 18 Jun 1996 10:24:10 +0200
Organization: TU Braunschweig, Germany
Lines: 19
Distribution: world
Message-ID: <4q5p3a$l1@malibu.ts.rz.tu-bs.de>
References: <31c5fba8.407993@news.intergate.bc.ca>
Reply-To: M.Butkus@tu-bs.de
NNTP-Posting-Host: rzrtr1.rz.tu-bs.de
X-Newsreader: TIN [version 1.2 PL2]
Originator: y0001415@ws.rz.tu-bs.de

Jordon Randall (jordon@intergate.bc.ca) wrote:
: I know this is a dumb question, but how do you erase a user? 

1. vipw. This will let you edit the passwd file. Delete the line 
   that specifies the user (see passwd(5) when in doubt).  BTW, do
   NOT use "vi /etc/passwd", this will not work.
2. Nuke the user's home directory.

If you just want to disable the account of user joe temporarily, a

chsh -s /sbin/nologin joe

will suffice. To re-enable the account, do a 

chsh -s /bin/sh joe
--
Martin Butkus					>>> Live long and prosper. <<<
Phone/Fax: +49.5331.298710
Am Stadtwege 10, 38304 Wolfenbuettel, Germany	M.Butkus@tu-bs.de