What do I need to run git hub as root?
brew install hub
# brew install hub
W: be careful as root.
You may want to update following environments after installed linuxbrew.
PATH, MANPATH, INFOPATH
Don't run this as root!
/usr/lib/linuxbrew-wrapper/install:110: warning: Insecure world writable dir /root in PATH, mode 040777
$ sudo -u user 'git hub user myuser'
sudo: git hub user myuser: command not found
The solution is to install hub from a regular user.
$ brew install hub
and to add
/usr/local/bin to the
$PATH of root user (if it's not already the case.)