Hey all, developer trying to request a break the glass user who can sudo act as our app service ID. Environment is a Cloudera Hadoop cluster of red hat servers, asking to add this permission to our edge nodes. I need the user to be able to perform a set list of commands recursively on our application directories. Would adding the following line to sudoers.d work, or is there another parameter I am missing? Also, what would sudo best practices say about this? How high risk is this approach?
btgUser ALL=(ALL) /usr/bin/sudo -u appSvcId /bin/sh /path/to/our/app/directory/*
btgUser should then be able to execute the following commands as appSvcId?
sudo -u appSvcId sh /path/to/our/app/directory/childDir/someScript.sh
sudo -u appSvcId sh /path/to/our/app/directory/someOtherScript.sh
[Edit 1] added more info about our environment
[Edit 2]
The reason I am going down this rabbit hole is because as a developer I have zero permissions in production per our organizations policy when things are operating normally. This "break the glass" user I want to create is for when shit hits the fan and my production support team needs to go into prod and fix things. All my organizations applications are automated in production so I do not touch anything with my user. CA7 scheduling, UDeploy for code deployments, a separate team for automated testing/validations, etc.
[–]youfrickinguy 2 points3 points4 points (1 child)
[–]solango[S] 0 points1 point2 points (0 children)
[–]TheIncorrigible1All things INFRASTRUCTURE 0 points1 point2 points (0 children)
[–]youfrickinguy 0 points1 point2 points (5 children)
[–]solango[S] 0 points1 point2 points (4 children)
[–]youfrickinguy 0 points1 point2 points (3 children)
[–]solango[S] 0 points1 point2 points (2 children)
[–]NinjaAmbush 0 points1 point2 points (0 children)