On Wed, 2007-02-28 at 13:40 +0000, Mark Rogers wrote:
> Stevan Goode wrote:
> > I don't know shell scripting, but I put together a PHP script for you.
> > It loops through the directory, turns the directory name into the user
> > id, gets the owners userid and does the compare. Doesn't check things
> > starting with a ".".
> >   
> 
> Thanks for that!

No Problem.

> and those that come back "No such user" are the ones with problems. Thus:
>     ls | xargs -l1 id -u | grep "No such user"

The PHP script will show up folders that don't have the right owner. If
there's another problem (not just users being deleted) then just
checking if the user exists may not work.

Steve



_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to