Workaround for default home location for Ubuntu 14.04 and 16.04 #67314
Replies: 8 comments
-
|
Why are you messing with /etc/default/useradd? Check out the documentation for user.present and use that to define your expectations. |
Beta Was this translation helpful? Give feedback.
-
|
If you wanted to submit a PR, we would love to have it. Thanks for the request. |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
|
This is still relevant. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
|
Unstale. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue/Question
Ubuntu 14.04 LTS and 16.04 LTS have a bug which makes it impossible to configure where should default home directories be created (bug talks about default shell, but it is a problem for any default setting).
Salt's
user.presentstate delegates to system location of where the user's home directory should be created, if it is not provided. The issue is that on very popular Ubuntu 14.04 LTS and 16.04 LTS systems you cannot really change this.I would propose that salt has a workaround and checks where the default home directory is and use that when creating a home directory. It already reads some configuration from the system so it could also read
DHOMEfrom/etc/adduser.conforHOMEfrom/etc/default/useraddand use that to pass-btouseraddprogram calls.Beta Was this translation helpful? Give feedback.
All reactions