Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User of sudo within python plugins in Ganglia #233

Open
peterchilds opened this issue Nov 29, 2017 · 0 comments
Open

User of sudo within python plugins in Ganglia #233

peterchilds opened this issue Nov 29, 2017 · 0 comments

Comments

@peterchilds
Copy link

Using https://github.com/ganglia/gmond_python_modules/tree/master/gpfs to monitor gpfs aka Spectrum Scale 4.2.3

Upon the first call to mmpmon sudo is being called by root hence root is sudoing to root and hence not gaining the !requiretty flag.

Once its started the plugin is downgraded to ganglia and hence the !requiretty as in the readme file works.

If I add
Defaults:root !requiretty
or
Defaults!/usr/lpp/mmfs/bin/mmpmon !requiretty
it works fine.

This was found after quiet a bit of puzzeled looking around and needing to switch the debug options in sudo.

I'm thinking this is a security issue in how the plugin operate rather than just this one plugin and hence effects other plugins.

This is running Ganglia 3.7.2 under CentOs7.3 where ganglia runs as ganglia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant