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!
Hadn't thought of using "id -u", but with that I can simplify the job
(by completely chaging the spec :-): the problem is with users that have
been deleted, so I can use id to check the name of each mailbox name,
and those that come back "No such user" are the ones with problems. Thus:
ls | xargs -l1 id -u | grep "No such user"
Don't ya love FOSS!
--
Mark Rogers
More Solutions Ltd :: 0845 45 89 555
_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro