user missing after restore
user missing after restore
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 :/
ps. i really it the search here, it's not working :/
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: user missing after restore
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/
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
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".

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".

-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: user missing after restore
what is the result of:
v-list-users
and
v-list-user marl
v-list-users
and
v-list-user marl
Re: user missing after restore
v-list-users shows only "admin" user, "marl" is not in there; doing v-list-user marl shows user "marl" information.tjebbeke wrote:what is the result of:
v-list-users
and
v-list-user marl
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: user missing after restore
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
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 emailtjebbeke 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.
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: user missing after restore
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
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
Yay! That fix it! Thanks man!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
-
- Posts: 2
- Joined: Wed Apr 10, 2019 1:33 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: user missing after restore
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!!!
i am delighted.
and your product is not behind.
amazing!!!
i have no words to express my love for this product and team!
best!!!