-
Notifications
You must be signed in to change notification settings - Fork 810
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
Run without root? #147
Comments
That would be possible if you mount your own
I haven't tried it, but this would be my starting point. |
This would not work with entrypoint script since it requires root privileges for creating folders and configurations. Is there any other way to do it? |
Hi @atmoz, is there an update on how this works together with the entrypoint script? I'm trying to deploy an SFTP server to Openshift that is not allowed to run root containers. |
I have the same issue with OpenShift.
I have also tried what was suggested here, but without any luck:
|
Have you tried some of the tips from here? https://serverfault.com/questions/344295/is-it-possible-to-run-sshd-as-a-normal-user |
@atmoz : Can you help for non root configuration for sftp. Link which is shared is not helpful. |
Hi @riprasad That works perfect for my use case. |
For anyone coming across this, you can use this to create an image that could work for you:
This is a little crude but it should work and/or be a starting point. |
Alternative solution is to use this go based sftp server https://github.com/drakkan/sftpgo |
thanks @taylorjonl ! If others like me kept wondering why it works for him and not for you it's because in his example the sftp user and the user that runs the |
Hi there!
It would be great if the container could be ran without root (maybe as an option). It seems possible, see this although with only one user I believe.
Thanks!
The text was updated successfully, but these errors were encountered: