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

Problem with tty when using su-exec inside a docker #33

Open
atanmarko opened this issue May 21, 2021 · 2 comments
Open

Problem with tty when using su-exec inside a docker #33

atanmarko opened this issue May 21, 2021 · 2 comments

Comments

@atanmarko
Copy link

I have an use-case where I execute su-exec command from the entrypoint.sh script inside docker. Problem is that executed program can not open default tty device (in my case '/dev/pts/0') because it is still owned by root while su-exec command is running.

I did a workaround by manually changing ownership of tty device before running command, but maybe this could be resolved in su-exec?

@tianon
Copy link
Contributor

tianon commented May 21, 2021

I'd add a link to tianon/gosu#8 which has some very relevant discussion around this same idea. 😅

@atanmarko
Copy link
Author

Similar thing is happening in login utility, you can check how they chown tty here

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

2 participants