Gnome logging out user with sudo privileges

Everything about X, Gnome, KDE, ... and everything running on it

Gnome logging out user with sudo privileges

Postby korky » 2018-01-23 07:15

Hi guys, I have reinstalled Debian 9 and since then I am experiencing serious problem running GNOME on it. I know that It is not recommended to run GUI apps with sudo, but after finding command
Code: Select all
xhost si:localuser:root
it allows me to run GUI SW with sudo. Unfortunatelly just after one second I am loged out from system, the same thing happens when I choose Gnome on Xorg. In the past I have never experienced that problem on Xorg. Whats more I am also loged out from system when I plug in USB Flash disk, or when I mount something (eg. loop). I am running Gnome Shell 3.26.2 and Debian 9 with kernel 4.14.0-3. I have been looking for solution since yesterday, but I have not found somebody with same issue. It look like as an issue with sudo. By the way user, who I am using is also part of sudo group, my sudoers:
Code: Select all
%sudo   ALL=(ALL:ALL) ALL
juraj ALL=(ALL:ALL) ALL
Last edited by korky on 2018-01-23 08:35, edited 1 time in total.
korky
 
Posts: 4
Joined: 2018-01-23 07:02

Re: Gnome logging out user

Postby debiman » 2018-01-23 07:29

korky wrote:I know that It is not recommended to run GUI apps with sudo, but after finding command
Code: Select all
xhost si:localuser:root
it allows me to run GUI SW with sudo.

this is relevant.
please update your thread title to "Gnome logging out user with sudo privileges" or something.
User avatar
debiman
 
Posts: 2253
Joined: 2013-03-12 07:18

Re: Gnome logging out user with sudo privileges

Postby korky » 2018-01-23 08:50

It looks like to be user related, because when I created new user there is no loging out when I attache some storage or unmount it. When I use metacity there is no problem on both accounts. Now when I plug in USB stick it notifies me about mounting and then I can see grey backgroud as in login screen and immediately it logs me in refreshing whole desktop with windows. The same process can be seen when I unmount it.
korky
 
Posts: 4
Joined: 2018-01-23 07:02

Re: Gnome logging out user with sudo privileges

Postby korky » 2018-01-23 09:34

Problem has been solved, luckily. This issue was caused by enabled Places Status Indicator in GNOME Tweak Tools. After disabling it, everything works like a charm.
korky
 
Posts: 4
Joined: 2018-01-23 07:02


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable