Closed nicolasnoble closed 7 years ago
I never had a reason to use rake-compiler-dock as root. But I'll check this.
I agree it's kind of rare - I figured I'd report this as I noticed the problem :)
Which also means we can't use any of the system users that already exist in the docker image:
pixel@grumpy:~$ sudo -s -H -u www-data
www-data@grumpy:/home/pixel$ rake-compiler-dock
groupadd: GID '33' already exists
useradd: UID 33 is not unique
ln: failed to create symbolic link '~pixel/.rake-compiler': No such file or directory
sudo: unknown user: pixel
sudo: unable to initialize policy plugin
www-data@grumpy:/home/pixel$
(not that it'd be a good idea to do that from www-data
, I agree... but... ;-) )
The runas script fails to check if we aren't running it as root already.