Bug 909665

Summary: 'This account is currently not available.' error when running /etc/cron.daily/slrnpull-expire
Product: [Fedora] Fedora Reporter: Matěj Cepl <mcepl>
Component: slrnAssignee: Petr Pisar <ppisar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mcepl, mlichvar, ppisar
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: 2013-02-11 10:33:39 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:
Attachments:
Description Flags
suggested patch none

Description Matěj Cepl 2013-02-10 09:23:31 UTC
Description of problem:

wycliff:spool# sh -x /etc/cron.daily/slrnpull-expire 
+ umask 022
+ '[' -d /var/spool/slrnpull ']'
+ exec runuser news -c 'slrnpull --expire'
This account is currently not available.


Version-Release number of selected component (if applicable):
slrn-1.0.0-0.1.pre1.0.0.41.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.see above
2.
3.
  
Actual results:
The error message and slrnpull --expire is acutally not run

Expected results:
automagically expired directories

Additional info:
The problem is obviously in the status of the news user:

matej@wycliff: ~$ grep news /etc/passwd
news:x:990:983:News server user:/etc/news:/sbin/nologin
matej@wycliff: ~$ 

news user has (as it should) /sbin/nologin as its login shell, which runuser doesn't like. Suggested patch attached.

Comment 1 Matěj Cepl 2013-02-10 09:24:45 UTC
Created attachment 695690 [details]
suggested patch

Comment 2 Petr Pisar 2013-02-11 10:33:39 UTC

*** This bug has been marked as a duplicate of bug 909661 ***