Index: [Article Count Order] [Thread]

Date:  Sat, 21 Apr 2007 22:30:43 -0700
From:  "Adam Crews" <adam.crews (at mark) gmail.com>
Subject:  [coba-e:09653] Re: How to Clean Up Ghost Users
To:  coba-e (at mark) bluequartz.org
Message-Id:  <1486c6440704212230w10c81631na4d7dd05a8364990 (at mark) mail.gmail.com>
In-Reply-To:  <200704212327.l3LNRsPl026653 (at mark) huda.muntadanet.com>
References:  <200704212327.l3LNRsPl026653 (at mark) huda.muntadanet.com>
X-Mail-Count: 09653

You do not need to.  The db library will automatically overwrite the
old/not used data as needed.  The users that were removed were removed
form the index, and the actual underlying data is not removed.  As
more records are added, they the internal structure of the DB file
will overwrite the areas with the old data as needed.  This is similar
to how a normal file system works.  When you delete a file, the
reference to that file is removed from the file table, but the
underlying data is not actually purged from the disk (unless you are
using special file systems or other data scrubbing software).

You can verify that the users are remove from the index by doing a
'getent passwd' and looking at the list that is returned.

-Adam

On 4/21/07, MuntadaNet Webmaster <webmaster (at mark) muntada.com> wrote:
>
>  I did a:
>
>  strings /var/db/passwd.db
>
>  It returned users that were deleted.
>
>  How can I safely remove these users from the passwd.db?
>
>  -Rashid
>
>
> *****************************************************************
>  MuntadaNet Web Hosting and Web Design Services
>  http://www.muntada.com
>
>  Sales - sales (at mark) muntada.com
>  Support - support (at mark) muntada.com
>  Billing - billing (at mark) muntada.com
>
>  Main Office - 808-689-6092
>  Fax - (808) 356-0279
> *****************************************************************
>
>
>
> *****************************************************************
> MuntadaNet Web Hosting and Web Design Services
>  http://www.muntada.com
>
> Sales - sales (at mark) muntada.com
> Support - support (at mark) muntada.com
> Billing - billing (at mark) muntada.com
>
> Main Office - 808-689-6092
> Fax - (808) 356-0279
> *****************************************************************


-- 
-----------------------------------------------------------------
Shroom.net Donation Based Web Hosting
http://www.shroom.net/
-----------------------------------------------------------------