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

st2auth should run as root #190

Open
martijn-dekkers opened this issue Feb 29, 2016 · 5 comments
Open

st2auth should run as root #190

martijn-dekkers opened this issue Feb 29, 2016 · 5 comments

Comments

@martijn-dekkers
Copy link

as per https://stackstorm-community.slack.com/archives/community/p1456739781004524
st2auth should run as root to work with PAM

@dennybaa
Copy link
Contributor

@cynaptic-mdekkers hey there. I'm not sure that it's a good idea. Rather than running anything as root there probably should be PAM configuration for st2auth service similar to those other software is using http://linux.die.net/man/5/pam.d.

For example default samba example:

#%PAM-1.0
auth       sufficient   /lib/security/pam_ldap.so
auth       required     /lib/security/pam_unix_auth.so try_first_pass 
account    sufficient   /lib/security/pam_ldap.so
account    required     /lib/security/pam_unix_acct.so

@arm4b
Copy link
Member

arm4b commented Mar 3, 2016

@dennybaa I guess this is solved via #205 ?

If yes, is it available only in 1.4dev package or ready in 1.3.2 package as well?

@dennybaa
Copy link
Contributor

dennybaa commented Mar 4, 2016

@armab I don't think it solves the PAM problem, #205 doesn't change that we still run st2auth in the same way as unprivileged user st2.

@karthi81
Copy link

karthi81 commented Nov 9, 2017

I am creating the ssh trust keys then doing lot of stuff(rsync, creating file system, etc using python) and ssh trust keys created under normal user, for example /users/tony/.ssh but when I call the same function via st2 from tony login, then ssh keys are creating under root. I could not figure out that why is creating keys under root user. Can someone help me to understand the issue?

@arm4b
Copy link
Member

arm4b commented Nov 9, 2017

@karthi81 I guess your issue related to StackStorm/st2#3298.
That's because st2actionrunner service is executed by root.

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

No branches or pull requests

4 participants