19 May
2004
19 May
'04
20:52
Today at 10:42pm, Anders Johansson wrote:
On Wednesday 19 May 2004 22.40, Jim Worrest wrote:
I want to remove all files associated with a user, the delete function of YAST does not do this in SuSE 9.0. How do I go about doing this?
rm -rf /home/user
should do it. If you have been careless with the permissions and allowed the user to create files in other places on the drive, then
find / -user <uid> -exec rm -rf {} \;
will get rid of them all.
This will certainly get rid of all files, including directories, owned by <uid>, but there is some risk of deleting others' files as well. Presuming the carelessness with permissions you mention above, it is possible other users could have put files in directories created by the user being deleted. Jim