Salut,
C’est debian stretch avec gnome installé de zéro depuis quelques heures seulement.
Aucun mot de passe root défini à l’installation donc sudo est en place avec l’unique compte utilisateur créé.
Malgré cela, pkexec demande le mot de passe root.
Comment faire pour qu’il soit configuré correctement afin de demander le mot de passe utilisateur ?
$ groups
user cdrom floppy sudo audio dip video plugdev netdev
$ pkexec echo "test"
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/echo' as the super user
Authenticating as: root
Password:
Est-ce que le contenu de ce fichier est correct ?
$ cat /etc/polkit-1/localauthority.conf.d/50-localauthority.conf
# Configuration file for the PolicyKit Local Authority.
#
# DO NOT EDIT THIS FILE, it will be overwritten on update.
#
# See the pklocalauthority(8) man page for more information
# about configuring the Local Authority.
#
[Configuration]
AdminIdentities=unix-user:0
Sinon, quel programme génère ce même fichier ?
EDIT
Il n’y a pas d’autres fichiers localauthority… peut-être que le problème vient d’un fichier manquant ?
# ls -R /etc/polkit-1/localauthority*
/etc/polkit-1/localauthority:
10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d
/etc/polkit-1/localauthority/10-vendor.d:
/etc/polkit-1/localauthority/20-org.d:
/etc/polkit-1/localauthority/30-site.d:
/etc/polkit-1/localauthority/50-local.d:
/etc/polkit-1/localauthority/90-mandatory.d:
/etc/polkit-1/localauthority.conf.d:
50-localauthority.conf
EDIT 2
Ah mais il y en a dans /var/lib
$ sudo ls -R /var/lib/polkit-1/localauthority/
/var/lib/polkit-1/localauthority/:
10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d
/var/lib/polkit-1/localauthority/10-vendor.d:
geoclue-2.0.pkla gnome-control-center.pkla org.freedesktop.NetworkManager.pkla org.freedesktop.packagekit.pkla
/var/lib/polkit-1/localauthority/20-org.d:
/var/lib/polkit-1/localauthority/30-site.d:
/var/lib/polkit-1/localauthority/50-local.d:
/var/lib/polkit-1/localauthority/90-mandatory.d: