Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207836 - start-stop-daemon w/ pam won't work for non root users
Summary: start-stop-daemon w/ pam won't work for non root users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 03:48 UTC by Yuri Vasilevski (RETIRED)
Modified: 2008-03-31 16:36 UTC (History)
2 users (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 Yuri Vasilevski (RETIRED) gentoo-dev 2008-01-28 03:48:38 UTC
The change implemented in bug #64700 (start-stop-daemon doesn't use pam) prevent the usage of start-stop-daemon by non root users.
Because the /etc/pam.d/start-stop-daemon file states that the only way to authenticate is by being root:
auth		sufficient	pam_rootok.so

I like managing some processes via start-stop-daemon from my user's crontab because this way I can use some of the nice features that start-stop-daemon provides; like change the niceness and store the pid file for sending signals to the process.

So unless there is a possibility of a security issue, and I can't see how there could be one, I would like the /etc/pam.d/start-stop-daemon file to be patched in the following way:

 auth		sufficient	pam_rootok.so
+auth		sufficient	pam_permit.so
 account		required	pam_permit.so

PS: I am using sys-apps/baselayout-2.0.0_rc6-r1

Reproducible: Always

Steps to Reproduce:

Actual Results:  
$ /sbin/start-stop-daemon --start --exec /bin/echo
 * /sbin/start-stop-daemon: pam error: Permission denied
 * /sbin/start-stop-daemon: failed to start `/bin/echo'

Expected Results:  
$ /sbin/start-stop-daemon --start --exec /bin/echo

 * /sbin/start-stop-daemon: /bin/echo died
Comment 1 Roy Marples 2008-02-03 23:03:49 UTC
I've made this change in OpenRC now. I can't see any fault in the logic, but will back out the change if then Gentoo PAM team says otherwise.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-03-31 16:36:49 UTC
Fixed in OpenRC.