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 Debian/Ubuntu
  • Search

restore user permisson denied

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
11 posts
  • 1
  • 2
  • Next
donkow
Posts: 1
Joined: Thu Apr 20, 2017 12:43 am

restore user permisson denied
  • Quote

Post by donkow » Thu Apr 20, 2017 12:50 am

Hello..

I want to migrate my stuff to another server so ive used the backup command and this:
v-restore-user admin admin.2017-04-04.tar


but everytime i get after press enter
PERMISSON DENIED


i dont rly know why........
if me anyone can help i will spent something to the com.... this problem makes me headache

sry for my english im african
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: restore user permisson denied
  • Quote

Post by skurudo » Thu Apr 20, 2017 7:33 am

You're restore archive under root , right?
Top

donkowafrob
Posts: 1
Joined: Thu Apr 20, 2017 11:34 am

Re: restore user permisson denied
  • Quote

Post by donkowafrob » Thu Apr 20, 2017 11:36 am

yes i tried this under root and under the admin@XXXXX login...

under root directly i get: PERMISSON DENIED
under admin i get: COMMAND not found...

[email protected]
/usr/local/vesta/bin/v-restore-user xxxx xxx
-> COMMAND NOT FOUND

[email protected]
sudo /usr/local/vesta/bin/v-restore-user xxxx xxx
-> PERMISSON DENIED


[email protected]
v-restore-user xxxx xxx
-> PERMISSON DENIED






** Sorry for the new account here. i was yesterday so tired that i forgot my details **
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: restore user permisson denied
  • Quote

Post by skurudo » Mon Apr 24, 2017 10:40 am

Fist at all:
viewtopic.php?t=9685#p34354

And next..

Code: Select all

cd /backup

Code: Select all

v-restore-user user user-backup-archive
Top

cthemudo
Posts: 4
Joined: Thu Sep 14, 2017 5:08 am

Re: restore user permisson denied
  • Quote

Post by cthemudo » Wed Oct 04, 2017 2:12 pm

Hey, I had the same problem, but i didn't found de solution in the forum.

Code: Select all

[root@server]# v-restore-user user user.2017-10-04_124531.tar
Error: permission denied
I checked var and scripts and all is fine:

Code: Select all

[root@server]# echo $VESTA
/usr/local/vesta
[root@server]# head -n15 /usr/local/vesta/bin/v-restore-user
#!/bin/bash
...
# Import VESTA variable for cron launch
source /etc/profile
...
But I found a solution. I exec:

Code: Select all

[root@server]# bash -x /usr/local/vesta/bin/v-restore-user user user.2017-10-04_124531.tar
and saw:

Code: Select all

...
+ [[ user.2017-10-04_124531.tar =~ ^user.[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].tar$ ]]
+ check_result 10 'permission denied'
...
My VestaCP create backups with date_time, but v-restore-user check file ONLY with date.
The solution is simple:

Code: Select all

[root@server]# mv user.2017-10-04_124531.tar user.2017-10-04.tar
[root@server]# v-restore-user user user.2017-10-04.tar
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: restore user permisson denied
  • Quote

Post by imperio » Wed Oct 04, 2017 2:34 pm

cthemudo, do you modified the v-backup-user script?
Top

cthemudo
Posts: 4
Joined: Thu Sep 14, 2017 5:08 am

Re: restore user permisson denied
  • Quote

Post by cthemudo » Thu Oct 05, 2017 11:37 am

SORRY! My fault!

My admin modified the v-backup-user script for have multiples backups in one day.

He changed in /usr/local/vesta/bin/v-backup-user
time_n_date=$(date +'%T %F') <-> time_n_date=$(date +'%T %F_%H%M%S')

Sorry again!
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: restore user permisson denied
  • Quote

Post by imperio » Thu Oct 05, 2017 11:46 am

I think he used this modification https://github.com/serghey-rodin/vesta/pull/1289, but this modification is not official and not tested by project staff.
We recommend you to use the test servers if you will want to help us with testing third-party modifications.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: restore user permisson denied
  • Quote

Post by skamasle » Sat Oct 21, 2017 10:47 am

imperio wrote:I think he used this modification https://github.com/serghey-rodin/vesta/pull/1289, but this modification is not official and not tested by project staff.
We recommend you to use the test servers if you will want to help us with testing third-party modifications.
Actually it works, but maybe he not change v-restore-user part so, he can create backups but not restore it.

The problem of this is than you need apply patch to all servers you use :/
Top

menriquez
Posts: 9
Joined: Wed Nov 04, 2015 1:05 pm

Re: restore user permisson denied
  • Quote

Post by menriquez » Fri Feb 22, 2019 5:09 am

changing the backup filename to include the date of the backup in the format <user>.<yyyy-mm-dd>.tar worked for me after i had changed the backup filename\
Top


Post Reply
  • Print view

11 posts
  • 1
  • 2
  • Next

Return to “Debian/Ubuntu”



  • 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