Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

user missing after restore

General questions about VestaCP
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
marl
Posts: 14
Joined: Tue Feb 18, 2014 3:27 pm

user missing after restore
  • Quote

Post by marl » Fri Nov 27, 2015 3:53 pm

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 :/
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: user missing after restore
  • Quote

Post by tjebbeke » Fri Nov 27, 2015 6:08 pm

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/
Top

marl
Posts: 14
Joined: Tue Feb 18, 2014 3:27 pm

Re: user missing after restore
  • Quote

Post by marl » Fri Nov 27, 2015 6:18 pm

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
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: user missing after restore
  • Quote

Post by tjebbeke » Fri Nov 27, 2015 6:37 pm

what is the result of:
v-list-users
and
v-list-user marl
Top

marl
Posts: 14
Joined: Tue Feb 18, 2014 3:27 pm

Re: user missing after restore
  • Quote

Post by marl » Tue Dec 01, 2015 6:10 am

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

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: user missing after restore
  • Quote

Post by tjebbeke » Tue Dec 01, 2015 7:36 am

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

marl
Posts: 14
Joined: Tue Feb 18, 2014 3:27 pm

Re: user missing after restore
  • Quote

Post by marl » Tue Dec 01, 2015 9:10 pm

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
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: user missing after restore
  • Quote

Post by tjebbeke » Wed Dec 02, 2015 7:51 am

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
Top

marl
Posts: 14
Joined: Tue Feb 18, 2014 3:27 pm

Re: user missing after restore
  • Quote

Post by marl » Wed Dec 02, 2015 9:16 am

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!
Top

fernandobender
Posts: 2
Joined: Wed Apr 10, 2019 1:33 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: user missing after restore
  • Quote

Post by fernandobender » Mon Apr 15, 2019 12:34 am

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!!!
Top


Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password