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

Re: [cobalt-users] How to delete a user with files in web site dir.? 550



> find /home/sites/siteN/ -user USERNAME
>
> where siteN is the site number and USERNAME is the username or userid of
the
> user you are searching for
>
> Cheers,
>
> Lauchlin
>
> Since I found them best method of deleting them from the server
>
> Any ideas
>
> Regards
>
> Tunc

find /home/sites/siteN -user USERNAME -exec ls -a {} \; -ok rm -rf
USERNAME.USERNAME {} \;

This finds the files/folders for the user, and then asks you to confirm
deletion.
Use at your own risk!

-Chris