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

Re: "reset" perms and ownerships



Hi,

On 10/23/2013 01:33 PM, berenger.morel@neutralite.org wrote:
[...]

Hopefully he'll remember that using super user powers have to be made
with care :)

He will. :)


Is there anything like "rpm -V" on the debian toolset? I'm trying to
avoid "punishing him" (further) with reinstall...

It does not do any control (which is the role of rpm -V if I understood
correctly the man), but apt-get --reinstall might help. But if he did
the changes on /etc, it won't work, because configuration files won't be
modified ( it removes and installs, not purge and installs ).

I already did something along the lines of...

cd /var/cache/apt/archives
ls -1 *.deb | xargs sudo dpkg -Gi

(after manually fixing ownerships on sudo binaries, working dir's, and config/data files)

... which apparently solves some of the problems, but is far from fixing everything (ownerships of /etc and /var being just two examples).


I think you might have solutions, but what has been changed, exactly?
Software binaries in /usr? Configuration files in /etc? Other stuff in
/var?

Upon further investigation, here's what was done:

sudo chown -R <someuser>:<somegroup> /


Maybe simply changing back the perms and ownerships might be simpler, too.

Thought about it, but I have no reference to mimic (meaning: I have no definite list of previous user and group ownerships to refer/compare to).


Guess I'll bite the bullet and reinstall the machine (with the added advantage of solving other - unrelated - problems).


Thank you for your help,
Mário Barbosa


Reply to: