[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: synaptic per ssh



Title: Re: synaptic per ssh

On 05/06/2018 06:25:55 PM, Hermann wrote:

> Gib doch dem ssh-Befehl versuchsweise noch ein -t mit.

Danke für den Hinweis! Das hat mich schon einen Schritt weitergebracht: Jetzt kommt nach erfolgreichem Login die Passwortabfrage, um den Start von synaptic zu authorisieren. Hier komme ich aber schon wieder nicht weiter:

 

***

$ ssh -C -X -t laptop synaptic-pkexec

pc@laptop's password:

==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===

Authentication is required to run the Synaptic Package Manager

Authenticating as: ,,, (pc)

Password:

polkit-agent-helper-1: pam_authenticate failed: Authentication failure

==== AUTHENTICATION FAILED ===

Error executing command as another user: Not authorized

 

This incident has been reported.

Connection to laptop closed.

***

 

 

In /var/log/auth.log finde ich dies:

***

sshd[12146]: Accepted password for pc from 192.168.1.100 port 60988 ssh2

sshd[12146]: pam_unix(sshd:session): session opened for user pc by (uid=0)

systemd-logind[890]: New session 22 of user pc.

polkitd(authority=local): Registered Authentication Agent for unix-process:12156:1588936 (system bus name :1.32 [pkexec /usr/sbin/synaptic], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

polkit-agent-helper-1[12163]: pam_unix(polkit-1:auth): authentication failure; logname= uid=1000 euid=0 tty= ruser=pc rhost=  user=pc

polkit-agent-helper-1[12163]: pam_winbind(polkit-1:auth): getting password (0x00000388)

polkit-agent-helper-1[12163]: pam_winbind(polkit-1:auth): pam_get_item returned a password

polkit-agent-helper-1[12163]: pam_winbind(polkit-1:auth): request wbcLogonUser failed: WBC_ERR_AUTH_ERROR, PAM error: PAM_USER_UNKNOWN (10), NTSTATUS: NT_STATUS_NO_SUCH_USER, Error message was: The specified account does not exist.

polkitd(authority=local): Operator of unix-process:12156:1588936 FAILED to authenticate to gain authorization for action com.ubuntu.pkexec.synaptic for unix-process:12156:1588936 [/bin/sh /usr/bin/synaptic-pkexec] (owned by unix-user:pc)

pkexec[12159]: pc: Error executing command as another user: Not authorized [USER=root] [TTY=/dev/pts/0] [CWD=/home/pc] [COMMAND=/usr/sbin/synaptic]

polkitd(authority=local): Unregistered Authentication Agent for unix-process:12156:1588936 (system bus name :1.32, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

sshd[12155]: Received disconnect from 192.168.1.100 port 60988:11: disconnected by user

sshd[12155]: Disconnected from user pc 192.168.1.100 port 60988

sshd[12146]: pam_unix(sshd:session): session closed for user pc

systemd-logind[890]: Removed session 22.

***

 

Ich habe jetzt also ein Problem mit der Authentifizierung. Allerdings ist auf dem Zielrechner eine Datei /etc/polkit-1/localauthority.conf.d/99-my-admin-configuration.conf  mit folgendem Inhalt:

***

[Configuration]

AdminIdentities=unix-user:pc

***

 

Auch in /etc/sudoers ist der Nutzer enthalten:

***

# User privilege specification

root    ALL=(ALL:ALL) ALL

 

pc      ALL=(ALL:ALL) ALL

***

 

Wo muss ich da ansetzen?

 

 

Beste Grüße

 

Andreas

Attachment: pgpCHS0ll3qFm.pgp
Description: PGP signature


Reply to: