From 24017928ab0972834a7c1632fdf7e92933297563 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 7 Aug 2023 13:58:24 -0400 Subject: [PATCH] do not run honk as root --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 50dc564..5e944d1 100644 --- a/main.go +++ b/main.go @@ -74,6 +74,10 @@ func main() { ilog = log.I dlog = log.D + if os.Geteuid() == 0 { + elog.Fatalf("do not run honk as root") + } + args := flag.Args() cmd := "run" if len(args) > 0 {