You are not logged in.

#1 2020-08-04 12:33:04

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

[SOLVED] I am not administrator in KDE!

Hi,
I just installed arch linux with KDE.
At the time of writing this, I do not have a monitor, but did have a TV. I tested the installation on the TV, but I cannot work on the TV. So I setup chrome-remote-desktop to work with my laptop and the newly installed arch linux computer with the TV.
It seems to be working, without the TV.

I began customising KDE in system settings, then noticed that I cannot customising the login screen.
System Settings -> Startup and Shutdown -> Login Screen (SDDM)
Under the heading Login Screen, I see " You are not allowed to "You are not allowed to save the configuration".
Why is this the case?

Another Observation:
I tried to connect to wifi, (was using cable before) but see this notification: "org.freedesktop.NetworkManager.network-control request failed: not authorized"

But when I got to System Settings -> Account Details -> User Manger -> {Your Username}: I see that "Enable administrator privileges for this user" is checked.
Is this because I have Chrome Remote Desktop running?
Thanks

Last edited by arushgupta2007 (2020-08-14 04:46:50)

Offline

#2 2020-08-04 14:32:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: [SOLVED] I am not administrator in KDE!

Is your user a member of the wheel group?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2020-08-04 15:36:29

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

Hi,
Yes, My user in the part of the wheel group

Offline

#4 2020-08-04 17:55:55

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

Hi,
Don't know if this is related, but I keep getting a "System Policy prevents WI-FI scans" authentication prompt.
Furthermore, I used tigervnc to see if I can bypass this problem, but tigervnc also fails to the same problem.
I think this "System Policy prevents WI-FI scans" is related to some auth problem which is causing me not to be the administrator.
Thanks

Last edited by arushgupta2007 (2020-08-05 04:51:14)

Offline

#5 2020-08-04 18:25:09

GeorgeJP
Member
From: Czech Republic
Registered: 2020-01-28
Posts: 190

Re: [SOLVED] I am not administrator in KDE!

sudo command works?

Offline

#6 2020-08-04 18:51:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,740

Re: [SOLVED] I am not administrator in KDE!

Forget about the "being admin" nonsense that's a windows concept - KDE should™ present you w/ a polkit authentication dialog, but that requires an active session and a running polkit agent.
Also, I guess - there's a helper service, the root account must be active.

loginctl session-status
ps aux | grep polkit
sudo passwd -S root

Offline

#7 2020-08-05 04:17:04

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

GeorgeJP wrote:

sudo command works?

Yes Sudo command does work

Hi Seth,
Here are the results of the commands you gave (all run from vnc viewer):
loginctl session-status :

3 - arush (1000)
	   Since: Wed 2020-08-05 04:00:14 UTC; 12min ago
	  Leader: 417 (perl)
	 Service: login; type unspecified; class background
	   State: active
	    Unit: session-3.scope
		  |- 417 perl /usr/bin/vncserver :1 -geometry 1366x768 -alwaysshared -fg
		  |- 418 (sd-pam)
		  |- 429 /usr/bin/Xvnc :1 -auth /home/arush/.Xauthority -desktop archlinux:1 (arush) -fp /usr/share/fonts/75dpi,/usr/share/fonts/100dpi -geometry 1366x768 -pn -rfbauth /home/arush/.vnc/passwd -rfbport 5901 -rfbwait 30000 -alwaysshared
		  |- 466 sh -c /home/arush/.vnc/xstartup >> '/home/arush/.vnc/archlinux:1.log' 2>&1
		  |- 467 startplasma-x11
		  |- 471 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
		  |- 491 /usr/lib/kf5/start_kdeinit
		  |- 492 kdeinit5: Running...
		  |- 493 /usr/lib/kf5/klauncher --fd=9
		  |- 520 /usr/bin/kded5
		  |- 524 /usr/bin/kwin_x11
		  |- 539 /usr/lib/kactivitymanagerd
		  |- 550 /usr/bin/ksmserver
		  |- 552 /usr/bin/kglobalaccel5
		  |- 565 /usr/lib/dconf-service
		  |- 569 /usr/bin/kaccess
		  |- 573 /usr/bin/xembedsniproxy
		  |- 576 /usr/bin/plasmashell
		  |- 579 /usr/bin/baloo_file
		  |- 581 /usr/lib/polkit-kde-authentication-agent-1
		  |- 597 /usr/lib/kdeconnectd
		  |- 607 /usr/lib/DiscoverNotifier
		  |- 611 /usr/bin/gmenudbusmenuproxy
		  |- 650 /bin/kmix -session 10145dbd1dd000159653887900000010610003_1596542458_319761
		  |- 682 /bin/korgac -session 10145dbd1dd000159653887900000010610004_1596542458_319877
		  |- 701 /bin/konsole -session 10145dbd1dd000159653929400000010610006_1596542458_320223
		  |- 707 /usr/lib/telepathy/mission-control-5
		  |- 709 /usr/bin/akonadi_control
		  |- 717 /usr/lib/kf5/kscreen_backend_launcher
		  |- 741 /bin/systemsettings5 -session 10145dbd1dd000159654149100000010610014_1596542458_338581
		  |- 745 /usr/bin/akonadiserver
		  |- 748 /usr/lib/polkit-1/polkit-agent-helper-1 arush
		  |- 757 /usr/lib/org_kde_powerdevil
		  |- 770 /bin/mysqld --defaults-file=/home/arush/.local/share/akonadi/mysql.conf --datadir=/home/arush/.local/share/akonadi/db_data/ --socket=/run/user/1000/akonadi/mysql.socket --pid-file=/run/user/1000/akonadi/mysql.pid
		  |- 788 /bin/bash
		  |- 854 /usr/bin/akonadi_akonotes_resource --identifier akonadi_akonotes_resource_0
		  |- 855 /usr/bin/akonadi_archivemail_agent --identifier akonadi_archivemail_agent
		  |- 861 /usr/bin/akonadi_birthdays_resource --identifier akonadi_birthdays_resource
		  |- 862 /usr/bin/akonadi_contacts_resource --identifier akonadi_contacts_resource_0
		  |- 863 /usr/bin/akonadi_followupreminder_agent --identifier akonadi_followupreminder_agent
		  |- 864 /usr/bin/akonadi_ical_resource --identifier akonadi_ical_resource_0
		  |- 865 /usr/bin/akonadi_indexing_agent --identifier akonadi_indexing_agent
		  |- 868 /usr/bin/akonadi_maildir_resource --identifier akonadi_maildir_resource_0
		  |- 870 /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
		  |- 871 /usr/bin/akonadi_mailfilter_agent --identifier akonadi_mailfilter_agent
		  |- 876 /usr/bin/akonadi_migration_agent --identifier akonadi_migration_agent
		  |- 878 /usr/bin/akonadi_newmailnotifier_agent --identifier akonadi_newmailnotifier_agent
		  |- 879 /usr/bin/akonadi_notes_agent --identifier akonadi_notes_agent
		  |- 880 /usr/bin/akonadi_sendlater_agent --identifier akonadi_sendlater_agent
		  |- 882 /usr/bin/akonadi_unifiedmailbox_agent --identifier akonadi_unifiedmailbox_agent
		  |-1015 /usr/bin/kwalletd5
		  |-1340 file.so [kdeinit5] file local:/run/user/1000/klauncherozqwbS.1.slave-socket local:/run/user/1000/kded5OHNUmZ.1.slave-socket
		  |-1446 desktop.so [kdeinit5] desktop local:/run/user/1000/klauncherozqwbS.1.slave-socket local:/run/user/1000/plasmashellygfyFX.4.slave-socket
		  |-1448 file.so [kdeinit5] file local:/run/user/1000/klauncherozqwbS.1.slave-socket local:/run/user/1000/kio_desktopnZivMm.1.slave-socket
		  |-1476 /usr/bin/kate -b /home/arush/Desktop/login_test.txt
		  |-1493 tags.so [kdeinit5] tags local:/run/user/1000/klauncherozqwbS.1.slave-socket local:/run/user/1000/katemVEayl.1.slave-socket
		  |-1494 file.so [kdeinit5] file local:/run/user/1000/klauncherozqwbS.1.slave-socket local:/run/user/1000/katerAiYtk.2.slave-socket
		  |-1495 thumbnail.so [kdeinit5] thumbnail local:/run/user/1000/klauncherozqwbS.1.slave-socket local:/run/user/1000/kateDNtCFn.4.slave-socket
		  `-1532 loginctl session-status

Aug 05 04:11:37 archlinux kdeconnectd[597]: kdeconnect.core: Starting server ssl (I'm the client TCP socket)
Aug 05 04:11:37 archlinux kdeconnectd[597]: kdeconnect.core: Socket successfully established an SSL connection
Aug 05 04:11:37 archlinux kdeconnectd[597]: kdeconnect.core: It is a new device "Moto G (5) Plus"
Aug 05 04:11:37 archlinux kdeconnectd[597]: kdeconnect.core: Not loading plugin "kdeconnect_remotecommands" because device doesn't support it
Aug 05 04:11:37 archlinux kdeconnectd[597]: kdeconnect.core: Not loading plugin "kdeconnect_remotesystemvolume" because device doesn't support it
Aug 05 04:11:37 archlinux kdeconnectd[597]: kdeconnect.core: Not loading plugin "kdeconnect_lockdevice" because device doesn't support it
Aug 05 04:11:49 archlinux kdeconnectd[597]: kdeconnect.core: TCP connection done (i'm the existing device)
Aug 05 04:11:49 archlinux kdeconnectd[597]: kdeconnect.core: Starting server ssl (I'm the client TCP socket)
Aug 05 04:11:49 archlinux kdeconnectd[597]: kdeconnect.core: Socket successfully established an SSL connection
Aug 05 04:11:49 archlinux kdeconnectd[597]: kdeconnect.core: It is a known device "Moto G (5) Plus"

ps aux | grep polkit :

polkitd      525  0.0  0.2 1659824 23084 ?       Ssl  04:00   0:00 /usr/lib/polkit-1/polkitd --no-debug
arush        581  0.0  1.1 1132948 91032 ?       Sl   04:00   0:00 /usr/lib/polkit-kde-authentication-agent-1
root         748  0.0  0.0  12276  5336 ?        S    04:00   0:00 /usr/lib/polkit-1/polkit-agent-helper-1 arush
arush       1516  0.0  0.0   3052   704 pts/1    S+   04:11   0:00 grep polkit

sudo passwd -S root :

root P 08/02/2020 -1 -1 -1 -1

Offline

#8 2020-08-05 07:07:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,740

Re: [SOLVED] I am not administrator in KDE!

Active session, polkit-kde-authentication-agent-1 running (and the root account is enabled)

If you run " pkexec --disable-internal-agent kate", does an authentication dialog show up (the command itself will likely fail - https://xkcd.com/838/ - but that's irrelevant for this test)

Offline

#9 2020-08-05 07:51:00

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

Hi,
I ran it as user, and I got this error and also did not get the auth dialog:

Error executing command as another user: Not authorized

This incident has been reported.

So I ran it with sudo, I did not get the auth dialog but got this:

qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted

Thanks

Last edited by arushgupta2007 (2020-08-05 07:51:13)

Offline

#10 2020-08-05 07:58:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,740

Re: [SOLVED] I am not administrator in KDE!

The sudo failure is normal, so is the "incident" - but you should™ get the authentication dialog.
It's found because otherwise you'd get "Error executing command as another user: No authentication agent found." but apparently it fails for other reasons.
Whether that's a bug in KDE or because of the remote connection idk, but you could try the behavior w/ a local connection (and your TV)

Offline

#11 2020-08-05 11:30:35

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

Hi,
The previous results were made by tigervnc.
Anyway I got a chance to try it on the TV and I got the admin prompt.
Do I have to reinstall KDE or is there a problem with VNC?
Thanks

Offline

#12 2020-08-05 12:55:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,740

Re: [SOLVED] I am not administrator in KDE!

Reinstalling KDE will unlikely yield results.
You could edit /usr/share/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy to allow_any instead of allow_active

Offline

#13 2020-08-05 15:15:50

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

Hi,
Changing all allow_active to allow_any does not seem to work
Thanks

Offline

#14 2020-08-05 20:14:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,740

Re: [SOLVED] I am not administrator in KDE!

Seems to be a thing, https://bbs.archlinux.org/viewtopic.php?id=243886
The solution over there just allows every action for %wheel users w/o any authentication - not sure how "manually start the agent from console and it does work well with the new rule" would fit that condition (you don't need an agent if you grant permissions unconditionally)

Offline

#15 2020-08-06 01:14:34

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

Hi,
I ran sudo EDITOR=nano visudo and uncommented:

%wheel ALL=(ALL) NOPASSWD: ALL

And it still does not work. By the way, If it is useful here is the user permissions  part of visudo:

##
## User privilege specification
##
root ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL

## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'

## Read drop-in files from /etc/sudoers.d
@includedir /etc/sudoers.d

Thanks

Offline

#16 2020-08-06 01:49:23

loqs
Member
Registered: 2014-03-06
Posts: 19,048

Re: [SOLVED] I am not administrator in KDE!

sudo and polkit are completely separate access management frameworks.

Offline

#17 2020-08-14 04:44:37

arushgupta2007
Member
Registered: 2020-08-04
Posts: 9

Re: [SOLVED] I am not administrator in KDE!

Ok,
I just got a cable and finished the problem smile

Offline

Board footer

Powered by FluxBB