Bug 861440

Summary: Exiting a "sudo su -" causes accountservice to think that my user session has terminated
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: accountsserviceAssignee: Matthias Clasen <mclasen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-19 01:33:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hans de Goede 2012-09-28 15:36:20 UTC
After exiting a "sudo su -" session in a terminal running under a gnome3 session, my /var/log/messages shows:

Sep 28 17:30:10 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed: 2
Sep 28 17:30:10 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed for hans
Sep 28 17:30:10 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUser: session not found: 2
Sep 28 17:30:10 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed: 2
Sep 28 17:30:10 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed for hans
Sep 28 17:30:10 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUser: session not found: 2

The session not found is because it has already been destroyed / removed by exiting a "previous sudo su -"
session, that showed:

Sep 28 17:28:40 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed: 2
Sep 28 17:28:40 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed for hans
Sep 28 17:28:40 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUser: removing session 2
Sep 28 17:28:40 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: sessions changed user=hans num=0
Sep 28 17:28:40 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed: 2
Sep 28 17:28:40 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUserManager: Session removed for hans
Sep 28 17:28:40 shalem gdm-password][1059]: AccountsService-DEBUG(+): ActUser: session not found: 2

Followed by:

Sep 28 17:28:41 shalem NetworkManager[653]: <info> Policy set 'System eth0' (eth0) as default for IPv4 routing and DNS.

Which causes NM to kill my vpn connection ...

But the root cause is that accountsservice seems to think that I'm exiting my user session while I'm exiting a root session started through "sudo su -"

This is with a fully up2date F-18.

Comment 1 Matthias Clasen 2012-10-19 01:33:05 UTC
Oh wow. I hadn't seen this bug - it took as a while to figure this out recently.
Should be fixed now.