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?
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.
On Wednesday 19 May 2004 22.42, Anders Johansson wrote:
find / -user <uid> -exec rm -rf {} \;
will get rid of them all.
Actually, that's a bit careless find / -user <uid> -type f -exec rm {} \; Just in case the user owned any directories where other users stored files as well
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
I like the sound of that, but it's nothing I'm going to rush into. I scrambled a user account by trying to install WordPerfect 8 on SuSE 9.0, very bad move, probably did as much damage as virus. I like all the advice I got, and I'll move slowly on this problem. ---Jim On Thursday 20 May 2004 08:02, you wrote:
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?
The Right Way (tm) is: userdel -r user_name man userdel
participants (5)
-
Anders Johansson
-
Jim
-
Jim Cunning
-
Jim Worrest
-
Silviu Marin-Caea