platform icon indicating copy to clipboard operation
platform copied to clipboard

bug(dashmate): dashmate helper crashes on enourmously high linux uid

Open pshenmic opened this issue 7 months ago • 1 comments

Issue

Some distributions and VPS hosters may create weird linux users with enourmosly high linux user ID, dashmate should not allow users to run dashmate under users with such ids

Expected Behavior

Dashmate should throw a error when discover an overflow linux uid/gid

Current Behavior

Dashmate helper continuously restarts

Possible Solution

Check LOCAL_UID and LOCAL_GID before starting services in the DockerCompose.js

Steps to Reproduce (for bugs)

nphne-ll7u2s3d@test1:~$ id
uid=866391160(nphne-ll7u2s3d) gid=866391160(nphne-ll7u2s3d) groups=866391160(nphne-ll7u2s3d),44(video),988(docker)
Starting with UID: 866391160, GID: 866391160, USER: dashmate, GROUP: docker
su: unknown user dashmate
Creating user dashmate (866391160)
adduser: number 866391160 is not in 0..256000 range
Group exist: docker 988

pshenmic avatar Jul 10 '24 10:07 pshenmic