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"
?echo $USER
output for your username? Do you set your$USER
variable anywhere, to make it say something different?gonzalo.pincheira
user is defined in the LDAP database - what doesgetent passwd | grep pincheira
say? Likelyusermod
is not able to make changes involving non-local users/groups (although it's possible another utility such asgpasswd
can e.g.gpasswd --add $USER docker
)