Page 1 of 1

user missing after restore

Posted: Fri Nov 27, 2015 3:53 pm
by marl
so i made a backup on server1 then restore it in server2. success. i only restore a users backup. all sites and stuff is working. but when i login as admin in vesta i cant see that user in user menu, i can only see admin. how to fix?

ps. i really it the search here, it's not working :/

Re: user missing after restore

Posted: Fri Nov 27, 2015 6:08 pm
by tjebbeke
Have you restored the backup of that invisible user?
Can you verify that the username is listed in /usr/local/vesta/data/users.

ls /usr/local/vesta/data/users/

Re: user missing after restore

Posted: Fri Nov 27, 2015 6:18 pm
by marl
yes, it's in there.

and as i said data/sql are successfully restored. just that user don't show when i login as admin, so now i don't have option to "login as user".

Image

Re: user missing after restore

Posted: Fri Nov 27, 2015 6:37 pm
by tjebbeke
what is the result of:
v-list-users
and
v-list-user marl

Re: user missing after restore

Posted: Tue Dec 01, 2015 6:10 am
by marl
tjebbeke wrote:what is the result of:
v-list-users
and
v-list-user marl
v-list-users shows only "admin" user, "marl" is not in there; doing v-list-user marl shows user "marl" information.

Re: user missing after restore

Posted: Tue Dec 01, 2015 7:36 am
by tjebbeke
VestaCP is using grep @ /etc/passwd to list all users. So I suspect that your user has not entered an email address. You can execute grep marl /etc/passwd and look to see if there is any e-mail address in this line. If not change the user email with v-change-user-contact USER EMAIL.

Re: user missing after restore

Posted: Tue Dec 01, 2015 9:10 pm
by marl
tjebbeke wrote:VestaCP is using grep @ /etc/passwd to list all users. So I suspect that your user has not entered an email address. You can execute grep marl /etc/passwd and look to see if there is any e-mail address in this line. If not change the user email with v-change-user-contact USER EMAIL.
yes, when i do grep marl /etc/passwd, no password. i did v-change-user-contact USER EMAIL, i think it succeed (no reply after command) but it didn't update when i grep marl /etc/passwd, user still has no email

Re: user missing after restore

Posted: Wed Dec 02, 2015 7:51 am
by tjebbeke
Your passwd line would probably look like this?
marl:502:502::/home/marl:/sbin/nologin

Try to add the email address manually with nano or vi.

marl:502:502:[email protected]:/home/marl:/sbin/nologin

Re: user missing after restore

Posted: Wed Dec 02, 2015 9:16 am
by marl
tjebbeke wrote:Your passwd line would probably look like this?
marl:502:502::/home/marl:/sbin/nologin

Try to add the email address manually with nano or vi.

marl:502:502:[email protected]:/home/marl:/sbin/nologin
Yay! That fix it! Thanks man!

Re: user missing after restore

Posted: Mon Apr 15, 2019 12:34 am
by fernandobender
the support for this product is world class premium.
i am delighted.
and your product is not behind.
amazing!!!
i have no words to express my love for this product and team!
best!!!