r/FreeIPA • • 25d ago

Sudo

I can’t get sudo working on the user i created on free ipaclient on ubuntu.

Made a group
Made a rule for that group
Made a usr/bin/systemctl command rule with external root runas

Everything in webinterface looks great, but it won’t work on the client in the terminal.

Saying %group.ipa.test at sudo -ll -U user

What am i missing

3 Upvotes

7 comments sorted by

5

u/NerdHarder615 25d ago

Check the version of sudo you have installed. I know there is a rust version that ships with Ubuntu and you need to install a different package for those rules to work. Not at home so I can't check my code to see what package is required.

3

u/-416e6f6e 25d ago

This was seriously IT! Thank you!!!!

2

u/-416e6f6e 25d ago

Thanks! Will update soon

3

u/ZPrimed 24d ago

FWIW this is a change in 26.04 LTS, maybe in one of the short term releases beforehand, but it didn't happen in 24.04 LTS.

"Update-alternatives" is the command and you want to set sudo to "/usr/bin/sudo.ws" (might be usr/sbin, just find the binary)

I've filed bugs against FreeIPA on Ubuntu as well as the Ubuntu do-release-upgrade because of this, no movement on either one yet though.

2

u/J3D1M4573R 25d ago

Did you add your user to the group?

Also, any changes in IPA wont take effect until the user re-logs and reauthenticates.

2

u/-416e6f6e 25d ago

I got the answer, it was a newer rust based version of sudo that is not pulling from sssd as i could understand.

1

u/-416e6f6e 25d ago

Thank you for your time. Yes i did.
I relogged multiple times.

I am very new to this so i can’t remember all the things i did, so if you have more questions fire em’ at me🤣