amazon-ssm-agent icon indicating copy to clipboard operation
amazon-ssm-agent copied to clipboard

Incorrect permissions on ssm-agent-users

Open ghost opened this issue 8 years ago • 2 comments

Version 2.3.50.0

The file /etc/sudoers.d/ssm-agent-users is being created without an explicit os.Chown(). Permissions for /etc/sudoers.d files need to be 0440. Under my umask, it is 0644 which breaks sudo for that file.

Change would be in agent/session/session_unix.go

ghost avatar Sep 13 '18 20:09 ghost

This is a pain as it causes visudo -c to fail which breaks our puppet runs.

PeteE avatar Sep 20 '18 15:09 PeteE

We have a fix ready that will release with the next Agent update. Apologies for the inconvenience! In the meantime, if possible, you can change the permission on this file manually to remove the warning.

Thanks!

munindradas avatar Sep 20 '18 16:09 munindradas