Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw on init if process is not running under root (or similar) #7

Open
Kami opened this issue Feb 29, 2016 · 1 comment
Open

Throw on init if process is not running under root (or similar) #7

Kami opened this issue Feb 29, 2016 · 1 comment

Comments

@Kami
Copy link
Member

Kami commented Feb 29, 2016

PAM auth backend required elevated privileges (running as root, maybe being part of wheel group would also work) so we should make backend fail early if that condition is not met.

@dennybaa
Copy link

http://linux.die.net/man/5/pam.d
well I told that I'm not sure.. There should be appropriate /etc/pam.d/st2auth, don't know how in case of python daemons which we start...

The syntax of files contained in the /etc/pam.d/ directory, are identical except for the absence of any service field. In this case, the service is the name of the file in the /etc/pam.d/ directory. This filename must be in lower case.

An important feature of PAM, is that a number of rules may be stacked to combine the services of a number of PAMs for a given authentication task.

The service is typically the familiar name of the corresponding application: login and su are good examples. The service-name, other, is reserved for giving default rules. Only lines that mention the current service (or in the absence of such, the other entries) will be associated with the given service-application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants