LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-16-2017, 01:33 AM   #1
guti
LQ Newbie
 
Registered: Dec 2017
Location: PL
Distribution: Debian 9
Posts: 1

Rep: Reputation: Disabled
systemd root authentication every new shell session


Hello,
I'm running Debian stable 9.3. Since last night I have a problem with systemd behaviour. I suppose it's not Debian specific--it's rather systemd. And I'm completely new to the systemd.

Every new instance of shell session I'm asked to type root password. (I'm logged in as regular user, obviously.) It is regardles of shell type. Either TTY1 or graphical terminal emulators it's the same. Before I'll be able to see my prompt I got a message (partly in Polish).

Code:
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Wymagane jest uwierzytelnienie, aby zarządzać plikami usług lub jednostek systemu.
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ===
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Wymagane jest uwierzytelnienie, aby ponownie wczytać stan systemd.
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Wymagane jest uwierzytelnienie, aby zarządzać plikami usług lub jednostek systemu.
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ===
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Wymagane jest uwierzytelnienie, aby ponownie wczytać stan systemd.
Authenticating as: root
Password: 
szymon@t60:~$
==== AUTHENTICATION COMPLETE ===
This Polish phrases are about authentication needed.

I can't ignore this, because if I won't type the password for a while I got message:
Code:
Password: Failed to set default target: Method call timed out
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
And shell becomes kind of inactive--I can't type anything, although prompt is visible.

The /var/log/auth.log after starting new terminal emulator window
Code:
Dec 16 08:12:44 t60 polkitd(authority=local): Registered Authentication Agent for unix-process:2375:3585428 (system bus name :1.86 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
I even remember what caused this problem. (It was me...) That was issuing the following command without SUDO:
Code:
systemctl set-default multi-user.target
As far as I remember it asked for the root password and since then I got this annoying issue.

What I was trying to accomplish was login to my system in non-GUI mode, not by GDM or whatever I'm using now. That command was part of some random tutorial about systemd and non-GUI login. My bad, I didn't understand what I'm doing. I don't know how to reverse that. Could you please help me?
 
Old 12-18-2017, 12:53 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 8,139
Blog Entries: 5

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
Quote:
Originally Posted by guti View Post
I even remember what caused this problem. (It was me...) That was issuing the following command without SUDO:
Code:
systemctl set-default multi-user.target
As far as I remember it asked for the root password and since then I got this annoying issue.
interesting.
have a look in $HOME/.config/ there should be a systemd directory with something reflecting this action.
rename the directory to something systemd won't find.
does it help?

PS:
if you post command output, prepend each command with 'LC_ALL=C' to make it english.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
systemd: Started Session ### of user root" in /var/log/messages william11 Linux - Newbie 4 08-17-2017 07:02 AM
[SOLVED] "systemd: Started Session ### of user root" in /var/log/messages thealmightyos Linux - Security 4 03-22-2017 04:29 PM
systemd log flood, session opened for user root w_hairst Fedora 18 06-29-2015 01:43 AM
systemd for per screen session serafean Linux - Software 0 02-07-2013 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration