Restoring an existing user account

dlong500

Verified User
Joined
Nov 16, 2004
Messages
80
This may already be posted somewhere but I thought I'd mention it in case anyone else runs into this problem:

Apparently if you already have a user account on the system (created outside DirectAdmin) and try to restore that same username from a backup it will fail with "Unable to read the User data files for <username>".

After deleting the user from the system with deluser and removing the user's home directory (just in case) the backup restored successfully.
 
If the user already exists on the server, the backup system presume's it's a pre-existing DirectAdmin user. Personally, I like this behavior; I'd hate to accidentally overwrite a user I or someone else had created outside of DirectAdmin, by moving domain-user accounts to the server. I'd much rather be notified.

Jeff
 
I agree that I wouldn't want it to overwrite a user account from outside DirectAdmin, but the error message is a little cryptic.

I would be better if it said something like:
"DirectAdmin has detected an existing user account, <username>, on this server that conflicts with the user account being restored. Operation aborted. If you want to be able to restore this user please backup any important files in the existing user account, remove it, and then run the restore again."
 
Back
Top