master
Joey Hess 2008-01-16 13:32:05 -05:00
parent 572af908eb
commit 55dda5d591
1 changed files with 9 additions and 1 deletions

View File

@ -359,7 +359,15 @@ Any tool to edit the user database?
> to do it rarely, and the data I've wanted has been different each time. > to do it rarely, and the data I've wanted has been different each time.
> --[[Joey]] > --[[Joey]]
>> Thanks for these examples -- I have been using them. I don't know the Storable yet. Can someone share an example of removing a user? (I now setup account\_creation\_password and I have some spammer with different login names that I have banned that I might as well remove from the userdb.) >> Thanks for these examples -- I have been using them. I don't know the
>> Storable yet. Can someone share an example of removing a user? (I now
>> setup account\_creation\_password and I have some spammer with different
>> login names that I have banned that I might as well remove from the
>> userdb.)
>>> Let's see, you could do something like this:
>>> perl -le 'use Storable; my $userinfo=Storable::retrieve("userdb"); delete $$userinfo{"joey"}; Storable::lock_store($userinfo, "userdb")'
>>> I suppose I should stop being lame and create a command line tool wrapping up these operations.. --[[Joey]]
---- ----