Re: [gentoo-user] Fix file system permissions

2007-01-07 Thread Dan
On Thu, 4 Jan 2007 21:04:15 -0800
Joshua Schmidlkofer [EMAIL PROTECTED] 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



RE: [gentoo-user] Fix file system permissions

2007-01-05 Thread Nelson, David \(ED, PARD\)

 -Original Message-
 From: Joshua Schmidlkofer [mailto:[EMAIL PROTECTED]
 Sent: 05 January 2007 05:04
 To: gentoo-user@lists.gentoo.org; [EMAIL PROTECTED]
 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



Re: [gentoo-user] Fix file system permissions

2007-01-05 Thread Richard Cox
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



[gentoo-user] Fix file system permissions

2007-01-04 Thread Joshua Schmidlkofer

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



Re: [gentoo-user] Fix file system permissions

2007-01-04 Thread Randy Barlow
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



Re: [gentoo-user] Fix file system permissions

2007-01-04 Thread Iain Buchanan
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