linux - Provide root access but not DB access -
trying give servers production access more ops people in our team. issue db access concern. tasks ops not need db access , limited people should have such access.
let's have 2 servers:
application server: tomcat (app needs access db server)
db server: database
so give root access "application server" ops can sorts maintenance on server not able gain access db server. means cannot store db pass in configuration files app read example.
are there known practices solve issue that?
first credential 'application server' has access 'db server' should considered handed on root on application server. since db access must limited cannot give ops complete root on application server.
but not lose hope, there sudo.
sudo can give users or groups access root power, limited purposes. unfortunately setting sudo correctly can tricky prevent subshells , wildcards getting full root, possible.
there many permutations general answer beyond sudo without additional information use case. great reference sudo use case in mind 'sudo mastery' michael w. lucas.
Comments
Post a Comment