PDA

View Full Version : Sudo does not work graphically



GoldWing
May 24th, 2017, 10:28 AM
Hi,


After we install all our laptops with ubuntu 16.04 and brought them into the domain, it seems when the user logs in with his domain account, when doing admin tasks, it asks for our admin account 'ict' which we created in terms of emergency.
User is added to a file in /etc/sudoers.d/ with this:

x011sqdfqs ALL=(ALL) ALL

Actually we update these files (with puppet) when giving a user access to a system:

- /etc/sshd/sshd_config (in the AllowUsers section
- /etc/sssd/sssd.conf (in the simple_allow_users section
- /etc/sudoers.d/10_sudo_users_groups

The workaround now is to launch sudo unity-control-center via the terminal

Probably we need to update another file, but we have no clue which.

Thanks,


O.

hattpa
May 24th, 2017, 10:51 AM
I think you need to install gksu

GoldWing
May 24th, 2017, 11:28 AM
solution is to add this user to the sudo group as well, so he becomes administrator

GoldWing
May 24th, 2017, 12:44 PM
question is: all users that are in the sudo group have sudo access from the CLI & the GUI, but the ones in a file under /etc/sudoers.d does only have sudo access in the CLI.
Is this normal behaviour ?
A bug ?

mastablasta
May 25th, 2017, 01:59 PM
sudo is not to be used for GUI applications.

current recomedend method is
sudo -H