Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.access.net.au!news.netspace.net.au!news.mira.net.au!news.vbc.net!vbcnet-west!knews.uk0.vbc.net!idiscover.co.uk!cnt1.come.net.uk!news From: "Ricky Chan" <ricky@come.net.uk> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Remove User/Groups Date: Thu, 16 Jan 1997 15:34:55 +0100 Organization: ComeNet Technology Ltd Lines: 32 Message-ID: <ricky-1601971534550001@194.207.66.18> References: <32D0BDCD.41C67EA6@pobox.com> <5ar5cb$7so@fridge-nf0.shore.net> <32DA56D2.5C33@mail.hqs.crc.com> NNTP-Posting-Host: 194.207.66.18 X-Newsreader: Microsoft Internet Mail and News for Macintosh - 1.1 (34) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34122 In article <32DA56D2.5C33@mail.hqs.crc.com>, Dan Benjamin <dpb@mail.hqs.crc.com> wrote: >Nathan V. Patwardhan wrote: > >> : When I add user/groups with the command "adduser", what is the opposite >> : of this command ?? I mean how can I remove user without editing the >> >> You can do it manually, which is preferred, IMHO. Comment out >> the entry in /etc/passwd / /etc/master.passwd or change the user's >> shell. Remove their directories, and you're golden. > >That's actually terrible advice. /etc/passwd and /etc/master.passwd shouldn't be >edited on their own. Use the "vipw" command - a special invocation of vi that edits >and reformats both database files simultaneously. > >This is the *only* way that users should be manually added, removed, or edited. > >============================================= > Dan Benjamin dpb@mail.hqs.crc.com >============================================= Not if yoy use pwd_mkdb master.passwd afterwards cause thats what vipw does!!!!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ricky Chan: Email: ricky@come.net.uk Web: http://www.come.net.uk/~ricky