summaryrefslogtreecommitdiff
path: root/internal/user/name.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/user/name.go')
-rw-r--r--internal/user/name.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/user/name.go b/internal/user/name.go
index 28ab0a4..cd11907 100644
--- a/internal/user/name.go
+++ b/internal/user/name.go
@@ -10,11 +10,9 @@ func NoRootCheck() {
if err != nil {
panic(err)
}
-
if user.Uid == "0" {
panic("Not allowed to run as UID 0")
}
-
if user.Gid == "0" {
panic("Not allowed to run as GID 0")
}
@@ -26,6 +24,5 @@ func Name() string {
if err != nil {
panic(err)
}
-
return user.Username
}