Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309325 - sys-process/fcron-3.0.5-r1: fcrontab -l does not list for users
Summary: sys-process/fcron-3.0.5-r1: fcrontab -l does not list for users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-14 01:15 UTC by Moshe Kamensky
Modified: 2010-03-16 15:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moshe Kamensky 2010-03-14 01:15:00 UTC
fcrontab -l does not list the crontab of a regular user

Reproducible: Always

Steps to Reproduce:
1. Install fcron-3.0.5-r1 with pam enabled
2. run fcrontab -l as a regular user

Actual Results:  
The program returns:

could not change egid to 109: Operation not permitted

where 109 is the _uid_ of fcron (in my case)

Expected Results:  
The crontab should be listed

The solution is to change `fcrontab_uid' to `fcrontab_gid' in fcrontab.c, line 394
Comment 1 Patrick Lauer gentoo-dev 2010-03-14 10:37:26 UTC
Is the user in the cron group?
Comment 2 Moshe Kamensky 2010-03-14 14:41:31 UTC
(In reply to comment #1)
> Is the user in the cron group?
> 

Yes (though, to my understanding, this is no longer relevant)
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-03-16 15:21:24 UTC
Thanks for reporting, I've patched this in 3.0.5-r2 and will send it upstream in a moment.