mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
fix: create linux user with home dir (#15670)
This commit is contained in:
parent
04a6b0d281
commit
82ffdbfb30
@ -229,7 +229,7 @@ public class OSUtils {
|
||||
*/
|
||||
private static void createLinuxUser(String userName, String userGroup) throws IOException {
|
||||
log.info("create linux os user: {}", userName);
|
||||
String cmd = String.format("sudo useradd -g %s %s", userGroup, userName);
|
||||
String cmd = String.format("sudo useradd -m -g %s %s", userGroup, userName);
|
||||
log.info("execute cmd: {}", cmd);
|
||||
exeCmd(cmd);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user