This message was deleted.
# rancher-desktop
a
This message was deleted.
b
Did you change the group» what happens when you try to
sudo
the same command in an interactive window?
f
it returns: “sudo: a password is required”
b
Does the user have sudo access?
Or the group/user have sudo permissions?
1
I don't have a Mac, but it looks like it's more an issue with your environment than a rancher issue
f
how would i give it access / permissions? or check if i do
this may have started occurring around the time i had my last nnumber password change
b
check if the user/group is in the sudoers file
I can't help much more, as I use Windows mostly
And never, just NEVER, MacOs
😂 1
f
ok thanks! i’ll try that out. anyone else watching this thread who has a mac would love hearing any further ideas as well
w
do you have a
/etc/sudoers.d/zzzzz-rancher-desktop-lima
file? That may have broken the admin elevation for RD if it was removed.
f
@wide-mechanic-33041 I do %everyone ALL=(root:wheel) NOPASSWDNOSETENV /bin/mkdir -m 775 -p /private/var/run that’s the beginning of the file, with each beginning of each segment with similar notation
w
could you have some company security control that influences sudoers?
f
not that I am aware of. it was working for a while then, maybe around the time I updated my enterprise password, it stopped working. anything around that I might need to check?
w
did you try dropping back to "no admin" in general? you could also poke around /etc/sudoers to see if something removed the includedir for sudoers.d
f
Admin access is disabled. I don’t see a “includedir” anywhere in the suders.d folder. should i look for that in rancher?
w
not in the folder...
/etc/sudoers
should be at the bottom. looks like a comment, but isn't
so admin access is disabled, but its still failing at a sudo operation?
f
yes I get: ktop-shared\\” network”\n’ + ‘time=“2024-12-02T091832-05:00” level=fatal msg=“passwordLessSudo error: failed to run [sudo --user root --group wheel --non-interactive true]: exit status 1"\n’,
and it’s not at bottom of the zzzz file.
w
no the #includdir for
/etc/sudoers.d/
path is at the bottom of the
/etc/sudoers
file
f
@wide-mechanic-33041 hey Justin circling back on this. i do see the “#includedir /private/etc/sudoers.d” when i run sudo visudo in my terminal. any thoughts?
w
if you can run sudo visudo than sudo seems to be doing fine. and you have the zzzz file for Rancher to sudo as needed. Only other thought is if this is a company machine where they override default sudo functionality for additional governance so RDs sudo use is being suppressed.
👍 1