[Bug] [worker] Worker's automatic user creation on linux is not fully correct #15669
Closed
3 tasks done
Labels
bug
Something isn't working
Search before asking
What happened
default check successfully
butunable to change directory to /home/default
, though it seems this error doesn't affect the task's execution (if so, why issudo
present here?)actually it's the same issue with #844, the root cause appears to be OSUtils.java#L232 using 'useradd' without '-m' flag so
default
user created by the worker has no home dir.By the way, the "permission denied" issue caused by #15085 should also be fixed reasonably. It's frustrating and confusing not being able to run 'hello world' out of the box. Perhaps we should improve the Docker image for the worker? Providing optional runtime via .env or some other form could be a solution.
What you expected to happen
no error msg
unable to change directory to /home/default
How to reproduce
just install ds in docker compose following the tutorial and create a hello world python task
Anything else
No response
Version
3.2.x
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: