I read such a paragraph about Linux Security
Before security became a big issue, these services often just logged in using the root user account. Unfortunately, if an unauthorized person broke into one of these services, he instantly gained access to the system as the root user. To prevent this, now just about every service that runs in background on a Linux server has its own user account to log in with. This way, if a troublemaker compromises a service, he still can’t necessarily get access to the whole system.
About the word "compromise" in the sentence:
if a troublemaker compromises a service, he still can’t necessarily get access to the whole system.
Look up the Oxford dict, I get its meaning, harm
Bring into disrepute or danger by indiscreet, foolish, or reckless behaviour.
Why the author not use "danger" or "harm" directly, since compromise has multiple meaning to mislead.