That username already exists on the system

Nautic

Verified User
Joined
Jun 17, 2008
Messages
46
I have a problem with DA that i'm trying to sort out. We did an import of a backup from one DA to another. However the import was 18gb and DA did not seem to restore this correctly, so the idea is i'll do a manual transfer.

We deleted the old user account to clear it all out, we wanted it fresh. Then went to create the account again and received this error "That username already exists on the system." However the user is not there in DA.

Where should I be looking to manually clean a user off the system?

Regards,

Joel
 
And also check this:
Code:
$ grep USERNAME /etc/passwd
where USERNAME should be replaced by the username for which you're looking.

Jeff
 
Did you check if the dns zone for this user is deleted too?

Users do not have dns zones. Domains have zones. And the zone file itself will not prevent a user or a domain from being added. The domain being in the named.conf file will prevent a domain from being added in which case you will get an error stating that the domain already exists. But the error here is that the username already exists.

Remove the username from
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
 
On a shared server where you may not be the only user adding/deleting users, direct manipulation of these files can be dangerous; it can cause your server to lose valid information input by someone else.

Better use the userdel command, which is why I asked the question I did first.

Note that by default userdel does NOT delete any user-owned data, but if/when the user is re-added it could be at a different uid, in which case files may need to be re-chowned.

Jeff
 
Back
Top