Quoting William Boshuck <bos...@math.mcgill.ca>: > On Thu, Sep 15, 2011 at 12:05:55PM +0200, Tomas Bodzar wrote: > > On Thu, Sep 15, 2011 at 11:57 AM, Tomas Bodzar > <tomas.bod...@gmail.com> > > wrote: > > > On Thu, Sep 15, 2011 at 11:28 AM, Richard Toohey > > > <richardtoo...@paradise.net.nz> wrote: > > >> That last sentence - sounds exactly like what I need - so I try > it: > > >> > > >> # userdel -p testuser > > >> usage: userdel -D [-p preserve-value] > > >> B B B userdel [-prv] user > > >> > > > I'm on current. Anyway strange that -v switch doesn't provide > verbose > > > output in fact and that information in password file was not > preserved > > > in fact. User disappeared somewhere, but where :-) Files are in > place > > > as you can see. > > > > > > > > >$ sudo rm -rf /home/test/ > > $ userdel -D > > preserve false > > $ userdel -p true > > usage: userdel -D [-p preserve-value] > > userdel [-prv] user > > This should be 'userdel -D -p true' > according to userdel(8). >
I don't mean it rudely, but where do you see that in userdel(8)? USERDEL(8) OpenBSD System Manager's Manual USERDEL(8) NAME userdel - remove a user from the system SYNOPSIS userdel -D [-p preserve-value] userdel [-prv] user The second form suggests that I should be able to do ... userdel -p user ... doesn't it? (And that is also what the I think the FAQ is telling me.) Thanks. > 'userdel -p true user' also works > if preserve has not been set to > true (one way or another), which > is perhaps not obvious from the > syopsis.