Skip to content

Commit

Permalink
Revert root check (#412)
Browse files Browse the repository at this point in the history
Signed-off-by: Riley Laine <rlaine@slack-corp.com>
Signed-off-by: Esme Lamb <dlamb@slack-corp.com>
  • Loading branch information
rjlaine authored and dedelala committed Sep 9, 2024
1 parent 1d7cd55 commit 4925f06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/vt/servenv/servenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ func Init() {

// Once you run as root, you pretty much destroy the chances of a
// non-privileged user starting the program correctly.
// if uid := os.Getuid(); uid == 0 {
// log.Exitf("servenv.Init: running this as root makes no sense")
// }
if uid := os.Getuid(); uid == 0 {
log.Exitf("servenv.Init: running this as root makes no sense")
}

// We used to set this limit directly, but you pretty much have to
// use a root account to allow increasing a limit reliably. Dropping
Expand Down

0 comments on commit 4925f06

Please sign in to comment.