problem with accounts

resolveit

Verified User
Joined
Mar 22, 2004
Messages
757
Hi,

I have the following problem:

On one of my servers it seems there is a serious problem...
1. I only have Admin on the box, no additional resellers.
2. Under the admin panel I select "Show All Accounts" and get about 240 accounts.
3. Under the reseller panel I go to "List / Modify Accounts" and I get 46 accounts listed.
4. I try to restore accounts that are listed under the admin panel and not under the reseller panel and get "You don't have permission to restore user ......."

As I stated there are no other resellers on the box, the additional accounts under the Admin Panel->Show all Accounts are accounts I've deleted, even the home directories nolonger exist.


What I did to get this:
1. On another box I did a backup and on this box a restore of all accounts +- 190 accounts (to see if it works and to see how long it takes)
2. On this box I selected the accounts (one page at a time) and deleted them


I cannot replicate the problem on another box (I've tried).



Does anyone have any idea how to solve this problem?
Has anyone had similar problems?

Regards,
Onno Vrijburg
 
More info on the "You don't have permission to restore user .......".

It seems that backups sometimes gets made with access rights set to admin and group set to admin and sometimes with user admin and group the name of the actual user. Everytime I get this error the latter is the case.
 
Are you sure it's a random occurrance? That would be fairly strange.

What backup solution are you using?

Is it possible that DA has some users with one set if ownership/rights, and some users with another or others?

The latter is what we find on a lot of our servers.

Jeff
 
Hi Jeff,

It seems the rights issue is not the problem, I changed the rights to user admin and group admin and still got the error. Myst be something in the files...

I use DA backup and DA Restore from the reseller control panel.

regards,
Onno
 
Ok, some more info came to light...

The accounts that I cannot restore... it seems that the users already exist on the system, the restore seems to have created the unix user and then aborted :(

Regards,
Onno
 
I manually deleted the accounts because they are not supposed to be on the server in any event...



Now I get this....

Unable to extract the directory backup from the file /home/admin/user_backups/...........tar.gz
Unable to read the backed up user.usage file


Any ideas?
 
Hello,

If you *know* that those users are supposed to be under the admin "Reseller" account (since it's the only Reseller there).. Then just add all users to the following file:

/usr/local/directadmin/data/users/admin/users.list

Once there, you'll "have permission" to restore all the users.

John
 
DirectAdmin Support said:
Hello,

If you *know* that those users are supposed to be under the admin "Reseller" account (since it's the only Reseller there).. Then just add all users to the following file:

/usr/local/directadmin/data/users/admin/users.list

Once there, you'll "have permission" to restore all the users.

John


Hi John,

That is just the point the users were deleted from the system but the unix user accounts are still there. There is no /home/<username> directory, no trace of the user in DA.

Would it solve my problem if I add them to the user.list file and then delete them again or must I also create the /home/<username> directories?

Is there a easy way to add all users on the system to the user.list file? (There should only be 2-3 accounts on the server that do not belong there and these I can manually remove from the list)

Regards,
Onno Vrijburg
 
Back
Top