jamf / MakeMeAnAdmin

Provides temporary admin access for a standard user via Jamf Self Service
255 stars 65 forks source link

having issue wile granting the access #9

Open mani2care opened 2 years ago

mani2care commented 2 years ago

error : mani2 is not in the sudoers file. This incident will be reported.

but have access and enabled the admin while checking the account and its admin user , able to install the apps while doing the sudo its says "machi2 is not in the sudoers file. This incident will be reported."

Astorias96 commented 2 years ago

Hi mani2care,

I have been encountering the exact same issue. I fixed it by adding the following 2 lines to the bash file:

Line 68 - echo "$currentUser ALL=(ALL) ALL" >> /etc/sudoers.d/sudoers Line 81 - rm /etc/sudoers.d/sudoers

May not be the most clean fix, but it works. /!\ If you have already modified this file, this fix will delete the existing configuration /!\ I would not recommend editing this file and using the MakeMeAdmin bash in paralell, as it makes no sense in term of security.

Hope this helps. Kind regards,

Astorias96