diff --git a/accounts/accounts.go b/accounts/accounts.go index 7631a19c5..d7e2dd55b 100644 --- a/accounts/accounts.go +++ b/accounts/accounts.go @@ -117,6 +117,10 @@ func newUserInfo(name, uid, gid, home, shell string) UserInfo { } func checkUserIsHuman(info *UserInfo) bool { + if info.Name == "root" { + return false + } + shells := strings.Split(info.Shell, "/") tmpShell := shells[len(shells)-1] if SHELL_END_FALSE == tmpShell ||