This sounds to me like a job for chown, find and xargs. You should be able to find all of the files owned by a specific user and then pipe them to xargs with the proper chown command as an argument.
Can you explain why you want to do this? From what I understand you have a user com and you want to change the ownership of the files to someone else say fred. I don't believe you really need to change the ownership of the files to change the username. I would think you could change the username in the password and shadow files or just add a user with the same userid. As I understand it the file ownership is determined by the userid number not the username so associating a new name to the same number should work. Now if you are trying to change the files for a web domain...this is a different animal and is has nothing to do with Redhat, but rather the linux filesystem. You'll have to change the ownership recursively for each domain. As for your comments to the others on this list, many of whom have been a great benefit to the community, you have the right to unsubscribe! They were trying to better understand your question so they could give you a more sufficient or appropriate answer. Saying Redhat sucks because you can't figure out how to change the ownership of files on a LINUX filesystem makes no since to me. The fundamentals are all the same despite the distribution. Please take a moment to breath and let people help rather than blowing up at them after all "romper room" was an educational show for preschoolers not a community support system where understanding the problem in detail is important. > using RH 7.2 > > how can I change JUST the ownerships globally, > using chown, for all domains (have 100)... > and have each domain endup having the ownerships of > all their files/dirs using THEIR specific user/group ownerships? > (need to do this all at once) > > i.e. say i have a domain called > > komp.com > > the user (when ftping) is: com > and the group is : com > > but I can't have com used for the other domains. _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list