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

Re: lost file ownerships in etc?



On 6/17/14, John D. Hendrickson and Sara Darnell <johnandsara2@cox.net> wrote:
> Zenaan Harkness wrote:
>> On 6/16/14, der.hans <deb-user@lufthans.com> wrote:
>>> Am 16. Jun, 2014 schwätzte Zenaan Harkness so:
>>> moin moin,
>>>> Most files in /etc/ have lost their file ownerships, having become user
>>>> 1000.
>>
>>>> Can it be easily fixed?
>>>>
>>>> I am running etckeeper - is that useful to fixing this?
>>> Yes, etckeeper keeps track of file ownership and permissions.
>>>
>>> See /etc/.etckeeper.
>>
>> OK, I guess I can run this:
>> git log --pretty=oneline|more
>>
>> and view/record the commits that might have anything interesting (for
>> replaying), and just try rolling back on day at a time, eg with:
>>
>> git reset --hard HEAD~1
>>
>> Any other techniques I should keep in mind?

/etc/passwd appears normal.

> maybe reinstall the files.  dpkg can do that.

That sounds good. How would I that?

sudoers, sudoers.d, shadow and cups/ seem fine, but _everything_ else
is 1000.1000.

Looks like a lot of packages to reinstall - is there a semi-automated
way, or just spend the hour or two to reinstall everything?

TIA
Zenaan


Reply to: