[4257] in RedHat Linux List
re: chown as root -- finale
daemon@ATHENA.MIT.EDU (Jason Benderly)
Wed Nov 13 16:26:09 1996
Date: Wed, 13 Nov 96 16:09:33 EST
From: jbenderl@bacchus-le0 (Jason Benderly)
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Hi all,
This is what I did to resolve the accidental(brain-dead) changing
of all files to a user account:
rpm -qlav | awk '{printf "chown %s.%s %s\n", $2, $3, $8}' > /tmp/fixem
Then I edited fixem to get rid of some wierd files that were just numbers.
Wonder what these were.
Then I ran fixem. It chugged away for about 5 minutes. When completed
there were still many files and directories around that were not changed.
I did a find for these files, looking for the userid, and execed a chown on
them to root.
I then re-ran fixem, just in case.
All seems OK.
Much thanks to Vlad (Borg), Eric, Erik, and Mike.
Jason
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null