Score:0

A mechanical way of finding out any action's impact on config files

mm flag

Is there a mechanical way to find out the impact of any action on the config files?

The action can be anything: installing a package, adding a user, turning on a service, or updating an SSH key.

For example:

  • Adding a user may modify /etc/passwd, /etc/group, and /etc/shadow.

  • ssh-copy-id may modify the authorized_keys file of the user on the server.

I understand that one advantage of Linux over Windows is that configurations are more or less in one place and subject to manual modification (e.g. manually modifying /etc/passwd etc. instead of using useradd).

Many online tutorials explain which config files an action may modify and how. But I would like some mechanical way to make sure that I miss nothing.

Maybe something like dedicating a Ubuntu virtual machine to experimenting, doing the action in question, and scanning the whole machine (or only the likely directories) for change? A scan after a useradd action would flag /etc/passwd etc. as having changed.

I am not necessarily asking whether anyone could come up with a how-to on the fly. Maybe there is a standard method students of Linux have always used?

waltinator avatar
it flag
You could use `installwatch`, part of the `checkinstall` package.
raj avatar
cn flag
raj
what do you mean by "mechanical"? "Mechanical" for me means something that involves physical mechanisms, like clocks, springs, motors, levers etc.
Catomic avatar
mm flag
@raj I guess that's an English usage question? I don't mind answering. 'Mechanical' in this context means something like 'rote' or 'mindless.'
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.