[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] exhaustive search



shawn <shawn@xxxxxxxxxxxx> writes:

> I was just wondering if there is a command for an exhaustive search
> (i.e. searching all of the content of files instead of just file names).
> I have a raq2, that has decided not to completely delete a user, so I
> cant readd the name. I have taken the username out of everywhere that I
> can think of, and it wont show up with locate or find, but it still says
> that its there when I try to add it in the GUI.

Try looking in /etc/passwd and /etc/shadow for the user.

For an exhaustive search of all files on the server, try something
like:

        find / | xargs grep -i username | less

Note however, that this may take a very long while to complete.

-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/