-
Notifications
You must be signed in to change notification settings - Fork 45
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
make it possible to run the script without root privileges #6
Comments
took a look into the code, and i think, basicly the chown statements need to be removed if the current user is not a root user (posix_id != 0) |
You're right, already thought about that. Maybe a special flag like |
I will take a look into that one, at first i will only check if uid ===0 if so do a chown if not simple not do it ----- Originale Nachricht -----
|
I'd like to discourage you of usage posix functions: it breaks compatibility with Windows. |
It doesn't work without those on Unix systems. I don't know if checking for Windows or with |
@kelunik the files will have the current user as owner if there is no chmod done, so it should be ok. and in those envs you will then upload the ssl certificates via a webinterface to setup all the stuff. |
Yes, but in all other environments you're usually not logged in as the webserver's user. And then all those files will be owned by your operations account. That's why I prefer a explicit |
agreed |
Should be resolved by #14. |
for some shared hosting envs it would be awesome to have the ability to run the client as non root user
The text was updated successfully, but these errors were encountered: