I've just installed Ubuntu on my PC, and so far the only user is the one set up through the install process (called master
).
I'm trying to add a standard user account, but it's not letting me. Every time I enter my desired username, a no-entry symbol appears next to it and I'm told that -
A user with the username 'dgard' already exists
However, this cannot be the case, because as previously mentioned there is only one user called master
on this PC.
I've tried sudo userdel -r dgard
, although I didn't expect this to do anything due to not having set a user up. Indeed, I was presented with the below message, and an inspection of the file confirmed no entry for 'dgard' -
userdel: cannot remove entry 'dgard' from /etc/passwd
Can anyone please suggest why I may be encountering this problem?
Information from comments:
getent passwd dgard
retunrs David Gard:/home/likewise-open/DD/dgard:/bin/bash
. I am using Likewise to connect to a Windows domain, but it seems odd that this would prevent me from having a local user with the same username as a domain user?
awk -F":" '{ print "username: " $1 "\t\tuid:" $3 }' /etc/passwd
getent passwd dgard
?/etc/passwd
file, and 'dgard' is not included.getent passwd dgard
retunrsDavid Gard:/home/likewise-open/DD/dgard:/bin/bash
. I am using Likewise to connect to a Windows domain, but it seems odd that this would prevent me from having a local user with the same username as a domain user? Thanks.