Should osquery be run as root? We are deploying os...
# fleet
j
Should osquery be run as root? We are deploying osquery but don't have permission to run it as root on Linux. Escalated privileges can be given. Will there be an issue if we run osquery with escalated privileges?
g
Hey @Jay, the fleetd agent does expect elevated/root/system permissions. This is also important for script execution. Would expect to be a similar case for plain osquery, otherwise will run into all sorts of table issues and strangeness.
j
Thank you @Grant Bilstad. Company policies prohibit root permissions, we can have elevated permissions. Can you point me to some documentation which lists the elevated permissions required for osquery?
l
j
Hi @Lucas Rodriguez Thank you, this is informative. It says recommended way is as root. As per our policy, we can have elevated permission but not root. It maybe difficult to get the approval. Any alternatives? I can have a user with elevated privileges.
l
Hi @Jay! Sorry, Fleet doesn't support running osquery in non-root mode. As far as I can see in some osquery Github issues, some users manage to run it as non-root but end up having issues with some tables, e.g.: https://github.com/osquery/osquery/issues/6484#issuecomment-664480831 So it really depends on the information/tables you would need to query.