Sorcerer's apprentice bites back
Nov. 17th, 2007 02:28 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I find myself staring, in incomprehension and horror, at my session on my BSD box, wondering just why, exactly, I decided to kick this off:
Updated: In the end, I broke in to the root account — marginally harder than it would have been if I'd changed more than just file ownerships — and chowned all the files on
sudo sh -c "find / -type f -printx | xargs /usr/sbin/chown new"
Fuck and double fuck. Nothing for it but to crash and reinstall, I guess...
Updated: In the end, I broke in to the root account — marginally harder than it would have been if I'd changed more than just file ownerships — and chowned all the files on
/
and /usr
to root. This was enough to fix the worst of the problems, but I've still got to reapply all the setuids and sort out the files that shouldn't be owned by root.
Now that I know that I don't have to reinstall — I probably would if I wasn't planning to scrap the box in the near future — I'm rather enjoying the challenge of working out how to sort things out. Then, when I'm done, I'm going to install AIDE so that should I ever make such a heinous mistake again, I won't be forced to grovel through install sets and reinstall packages to fix things.
no subject
Date: 2007-11-17 02:53 pm (UTC)What does the -printx do? the find that comes with mac os x (so from bsd, really) has a -print, which I understand, but not a -printx
no subject
Date: 2007-11-17 03:37 pm (UTC)