Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475420 - app-admin/logcheck-1.3.15-r1 with net-fs/samba - cron job fails with pam_winbind(su:account): valid_user: wbcGetpwnam gave WBC_ERR_DOMAIN_NOT_FOUND
Summary: app-admin/logcheck-1.3.15-r1 with net-fs/samba - cron job fails with pam_winb...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paweł Hajdan, Jr. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-01 13:58 UTC by Anders Lövgren
Modified: 2013-07-27 19:07 UTC (History)
0 users

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


Attachments
Run logcheck using sudo instead of su. (logcheck-sudo-fix.diff,370 bytes, patch)
2013-07-01 13:58 UTC, Anders Lövgren
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Lövgren 2013-07-01 13:58:04 UTC
Created attachment 352396 [details, diff]
Run logcheck using sudo instead of su.

Running logcheck using su causes winbind to report an error: pam_winbind(su:account): valid_user: wbcGetpwnam gave WBC_ERR_DOMAIN_NOT_FOUND

Attached is a diff against /etc/cron.hourly/logcheck.cron for running logcheck using sudo instead of su.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-01 15:31:04 UTC
You cannot simply replace su with sudo, so that isn't the solution to your problem, which is apparently caused by /lib/security/pam_winbind.so. Do you really need USE=pam in net-fs/samba to begin with?
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-07-27 19:07:58 UTC
(In reply to Jeroen Roovers from comment #1)
> You cannot simply replace su with sudo, so that isn't the solution to your
> problem, which is apparently caused by /lib/security/pam_winbind.so. Do you
> really need USE=pam in net-fs/samba to begin with?

This looks like an unusual configuration issue.

If you think this should be better supported out-of-the box, please re-open and post your PAM configuration or precise steps to reproduce.

The cron job should not assume the presence of sudo configured in a way that makes it possible to run that command.