Skip to content

Commit

Permalink
Skip dropping privileges for root user (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe4dev authored Oct 23, 2023
1 parent 3f022d7 commit bb1394a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/localstack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func main() {
bootstrap, handler := getBootstrap(os.Args)

// Switch to non-root user and drop root privileges
if IsRootUser() && lsOpts.User != "" {
if IsRootUser() && lsOpts.User != "" && lsOpts.User != "root" {
uid := 993
gid := 990
AddUser(lsOpts.User, uid, gid)
Expand Down

0 comments on commit bb1394a

Please sign in to comment.