I've been trying to register using usermod command my user that is gonzalo.pincheira.
My command is
usermod -aG docker $USER
But I get this error
usermod: user 'gonzalo.pincheira' does not exist
I don't understand why happen this. Using other users that doesn't have dot in the name, the command above works fine!
I use Ubuntu 14.04
Another weird things:
If I execute whoami I get gonzalo.pincheira.
If I execute this command to see all the users in the system, my user "gonzalo.pincheira" doesn't appears!!
cut -d: -f1 /etc/passwd
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
libuuid
syslog
messagebus
usbmux
dnsmasq
avahi-autoipd
kernoops
rtkit
saned
whoopsie
speech-dispatcher
avahi
lightdm
colord
hplip
pulse
globant
sshd
sophosav
usermetrics
clickpkg
gpincheira
Can anybody help me to understand this?
usermod -aG docker "$USER"? – terdon Oct 12 '16 at 15:27echo $USERoutput for your username? Do you set your$USERvariable anywhere, to make it say something different? – Thomas Ward Oct 12 '16 at 15:52gonzalo.pincheirauser is defined in the LDAP database - what doesgetent passwd | grep pincheirasay? Likelyusermodis not able to make changes involving non-local users/groups (although it's possible another utility such asgpasswdcan e.g.gpasswd --add $USER docker) – steeldriver Oct 12 '16 at 18:40