Bug 803860

Summary: logind thinks cron is a user; requires authentication to shutdown computer
Product: [openSUSE] openSUSE 12.3 Reporter: Michael Catanzaro <mcatanzaro>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: VERIFIED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Catanzaro 2013-02-14 23:02:13 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.6+ (KHTML, like Gecko) Chromium/23.0.1271.95 Chrome/23.0.1271.95 Safari/537.6+ Epiphany/3.6.1

If a cron job belonging to root is running then logind will prevent a desktop user from turning off his system without authenticating as a polkit admin.  (Something along the lines of "Authentication is required to turn off the computer when another user is logged in" even though there's only one user on the system.) I ran into this a few times in Factory this cycle, though not recently, but it's surely still a problem.

Reproducible: Sometimes

Steps to Reproduce:
Try to shutdown the system while a cron job belonging to root is running.
Actual Results:  
Authentication requested

Expected Results:  
No authentication requested

There is a small fix for this in systemd git that we should probably apply: http://cgit.freedesktop.org/systemd/systemd/commit/?id=1ca04b87979b2add53ebb8a7fdf13c34fb6c2743

Discussion: https://bugzilla.redhat.com/show_bug.cgi?id=890827
Comment 1 Michael Catanzaro 2013-02-19 23:06:13 UTC
I was experiencing a completely unrelated problem, which I opened a separate bug for. This patch was already integrated.