Rancher Desktop Administrative Access

PPAict
New Contributor III

Good morning.
In my instance of Jamf Pro I have several developers using Rancher Desktop in Administrative Mode, which requires "sudo access" for some operations. Therefore, at each start, they must rise (we have provided a special tool) to start the application. Is there a way I can avoid this step for them?
I tried with a script that modifies the sudoers file like this:

 

echo "$USER_NAME ALL=(ALL) NOPASSWD: $/Applications/Rancher Desktop.app/Contents/MacOS/Rancher Desktop" | sudo tee -a /etc/sudoers > /dev/null.

 

The file is indeed modified but Rancher continues to ask for the password on startup.
Am I doing something wrong? Are there other ways?
I already tried also to install the app in the User Folder.

2 REPLIES 2

AJPinto
Honored Contributor III

You need to look in to why Rancher needs admin access, and change the permissions for that daemon or whatever adding standard users to the list of groups with access. Similar process to allowing a standard user to modify wifi or printer settings. In the long run you probably want to look into a permissions management tool that can handle permissions escalations like this.

PPAict
New Contributor III

Sure I will try to investigate :)
What do you mean with permission management tool? Something like SAP Privileges or something different?