[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: File permissions messed up in /var and /tmp



El vie, 09-11-2007 a las 09:31 -0800, Andrew Sackville-West escribió:
> On Thu, Nov 08, 2007 at 10:06:55PM -0300, Gabriel Parrondo wrote:
> > 2007/11/8, Andrew Sackville-West <andrew@farwestbilliards.com>:
> > > On Thu, Nov 08, 2007 at 08:33:45PM -0300, Gabriel Parrondo wrote:
> > > > Hello,
> > > >
> > > > I ran 'chmod -R o-rwx .*' in /root and all permissions in /var and
> > > > /tmp got messed up (good luck I cancelled it before it could do more
> > > > damage). I manually fixed some permissions so I could at least have a
> > > > working environment to fix everything, but I don't know what the
> > > > permissions should be in most files...
> > > >
> > >
> > > don't sweat /tmp. it should fix itself up in a reboot. If not, then
> > > probably you can just rm everything in there and reboot again and it
> > > should be good.
> > >
> > > > Is there a way to restore all the permissions in /var? At least on
> > > > those files that are installed by the package manager; I think I can
> > > > just delete the other files and they'll be created again by their
> > > > programs.
> > >
> > > recently (in say the last month) tom arnall had this problem and I
> > > posted an attachment with all the non root:root file in my /var. hth
> > >
> > 
> > Hi, thanks for the quick response.
> > 
> > I remember that post. I just looked at it but couldn't find the mail
> > with the attachement, do you think you can send it to me? (maybe to my
> > personal for not duplicating it on the list). I only need the /var
> > tree.
> 
> I'll send it again offlist.

Thanks, I just received it.

Anyway, after manually fixing all the permissions I could with your file and some other references, I decided to reinstall... my system needed to be cleaned anyway.

Except from some issues with acls, it didn't represent to much trouble.
Here are the main steps in case anyone is afraid of doing it (as I was):
- Backup /etc and any other files manually added (/usr/local, etc)
- Save the output of 'dpkg --get-selections "*"'
- Not necessary, but useful, backup /var/cache/apt/archives
- Simply reinstall and restore backups (dpkg --set-selections <
selectionsfile also) and run 'aptitude install'


And, I FINALLY COULD START USING APTITUDE WITHOUT RUNNING INTO
TROUBLE! :)


-- 
Gabriel Parrondo
GNU/Linux User #404138
GnuPG Public Key ID: BED7BF43
JID: gabrielp@xmpp.us

"The only difference between theory and practice is that, in theory, there's no difference between theory and practice."

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente


Reply to: