platform
platform copied to clipboard
bug(dashmate): dashmate helper crashes on enourmously high linux uid
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 What do you think dashmate should do? Do not start services with an error that the user ID is too high and a user needs to create another one with a lower ID? I'm not sure the user can even create a user in such an environment. Do you have access to this VPS?