* Re: [gentoo-user] Fix file system permissions
2007-01-05 5:04 [gentoo-user] Fix file system permissions Joshua Schmidlkofer
@ 2007-01-05 5:55 ` Randy Barlow
2007-01-05 6:41 ` Iain Buchanan
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Randy Barlow @ 2007-01-05 5:55 UTC (permalink / raw
To: gentoo-user
On Thu, 2007-01-04 at 21:04 -0800, Joshua Schmidlkofer wrote:
> You can imagine that things are a little borked. How do you fix this
> with Gentoo?
Well, do you have any backups of the system to work with? Cause if not,
your next easiest approach might be to invent a time machine... But
seriously, perhaps an emerge -e world might help? That might not work
right away, but if you can fix the errors it gives as they come, it
might be able to put everything else (besides user files) back as they
were.
Randy Barlow
http://www.electronsweatshop.com
... faster BogoMIPS calculations (yes, it now boots 2 seconds faster
than it used to: we're considering changing the name from "Linux" to
"InstaBOOT" -- Linus, in the announcement for 1.3.26
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Fix file system permissions
2007-01-05 5:04 [gentoo-user] Fix file system permissions Joshua Schmidlkofer
2007-01-05 5:55 ` Randy Barlow
@ 2007-01-05 6:41 ` Iain Buchanan
2007-01-05 10:05 ` Nelson, David (ED, PAR&D)
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Iain Buchanan @ 2007-01-05 6:41 UTC (permalink / raw
To: gentoo-user
On Thu, 2007-01-04 at 21:04 -0800, Joshua Schmidlkofer wrote:
> Hey, a customer on a hosted server did this today:
>
> sudo chown -R lighttpd /
*heh heh*
apart from saying the mean (but deserved) restore from backup :) maybe
you could just `chown -R root /`
that would put you in a better state than now, at least.
do you use slocate? maybe the slocate database stores permission info
for files it searches... you could "reverse" that info somehow...
anyway, what's a customer doing with sudo access?
--
Iain Buchanan <iaindb at netspace dot net dot au>
Money is the root of all evil, and man needs roots.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [gentoo-user] Fix file system permissions
2007-01-05 5:04 [gentoo-user] Fix file system permissions Joshua Schmidlkofer
2007-01-05 5:55 ` Randy Barlow
2007-01-05 6:41 ` Iain Buchanan
@ 2007-01-05 10:05 ` Nelson, David (ED, PAR&D)
2007-01-05 23:03 ` Richard Cox
2007-01-07 21:09 ` Dan
4 siblings, 0 replies; 6+ messages in thread
From: Nelson, David (ED, PAR&D) @ 2007-01-05 10:05 UTC (permalink / raw
To: gentoo-user
> -----Original Message-----
> From: Joshua Schmidlkofer [mailto:joshland@gmail.com]
> Sent: 05 January 2007 05:04
> To: gentoo-user@lists.gentoo.org; cliff@twisty-industries.com
> Subject: [gentoo-user] Fix file system permissions
>
>
> Hey, a customer on a hosted server did this today:
>
> sudo chown -R lighttpd /
>
> --
>
> You can imagine that things are a little borked. How do you fix this
> with Gentoo?
>
>
> Sincerely,
> Joshua
rm -f /home/customer
;)
On a more serious note, I'd go with doing chow -R root / and of course then doing
for i in 1,2,3,4,....... etc \
chown -R customer$i /home/customer$i
You get the idea :>
David
Note: These views are my own, advice is provided with no guarantee of success. I do not represent anyone else in any emails I send to this list.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Fix file system permissions
2007-01-05 5:04 [gentoo-user] Fix file system permissions Joshua Schmidlkofer
` (2 preceding siblings ...)
2007-01-05 10:05 ` Nelson, David (ED, PAR&D)
@ 2007-01-05 23:03 ` Richard Cox
2007-01-07 21:09 ` Dan
4 siblings, 0 replies; 6+ messages in thread
From: Richard Cox @ 2007-01-05 23:03 UTC (permalink / raw
To: gentoo-user
I would think a quick fix (by no means a FULL fix) would be to re-emerge sys-apps/baselayout. That should at least get your init scrips, and important configs back to the right permissions. I've never actually tried that however, so take it with a grain of salt.
I would agree with most people on the list tho. Maybe its time for a machine upgrade and just re-emerge everything. Either way tho, I'm betting its going to take a lot of legwork to get things back to the way they were before hand.
Also maybe its time to chroot your customers to keep them from screwing things up again :)
On Thu, Jan 04, 2007 at 09:04:15PM -0800, Joshua Schmidlkofer wrote:
> Hey, a customer on a hosted server did this today:
>
> sudo chown -R lighttpd /
>
> --
>
> You can imagine that things are a little borked. How do you fix this
> with Gentoo?
>
>
> Sincerely,
> Joshua
> --
> gentoo-user@gentoo.org mailing list
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Fix file system permissions
2007-01-05 5:04 [gentoo-user] Fix file system permissions Joshua Schmidlkofer
` (3 preceding siblings ...)
2007-01-05 23:03 ` Richard Cox
@ 2007-01-07 21:09 ` Dan
4 siblings, 0 replies; 6+ messages in thread
From: Dan @ 2007-01-07 21:09 UTC (permalink / raw
To: gentoo-user
On Thu, 4 Jan 2007 21:04:15 -0800
"Joshua Schmidlkofer" <joshland@gmail.com> wrote:
> Hey, a customer on a hosted server did this today:
>
> sudo chown -R lighttpd /
>
> --
>
> You can imagine that things are a little borked. How do you fix this
> with Gentoo?
> > Sincerely,
> Joshua
I think a better fix might be to use a similar gentoo system to
'collect' the permissions on its files and things and then use that
data to restore the permissions on the borked computer.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread