We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Demo Account Setup
Demo Account Setup
This lil cron will change your demo account password every minute so people can access it anytime without manually changing the password. I have a working example below. Works on CentOS but dont know about Ubuntu or Debian
How to: (Please setup up a demo account for this to work)
1.) Login into VestaCP using your admin account
2.) Go to the Cron section
3.) Click on Add Cron Job
4.) Enter the following data:
Minute: */1
Hour: *
Day: *
Month: *
Day of Week: *
Command: sudo /usr/local/vesta/bin/v-change-user-password demo demo123
5.) Then save the cron and see the magic :)
A Working Example:
Control Panel Login:
https://vps.flectsoft.co.uk:8083/
Username: demo
Password: demo123
Change the password to anything, anytime of the day then within 1 minute it will change back within 1 minute due to a cron setup
How to: (Please setup up a demo account for this to work)
1.) Login into VestaCP using your admin account
2.) Go to the Cron section
3.) Click on Add Cron Job
4.) Enter the following data:
Minute: */1
Hour: *
Day: *
Month: *
Day of Week: *
Command: sudo /usr/local/vesta/bin/v-change-user-password demo demo123
5.) Then save the cron and see the magic :)
A Working Example:
Control Panel Login:
https://vps.flectsoft.co.uk:8083/
Username: demo
Password: demo123
Change the password to anything, anytime of the day then within 1 minute it will change back within 1 minute due to a cron setup
Re: Demo Account Setup
There is error as below: (centos 6)
Cron: sudo /usr/local/vesta/bin/v-change-user-password demo demo123
"/usr/local/vesta/bin/v-change-user-password: line 17: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-change-user-password: line 18: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-change-user-password: line 29: check_args: command not found
/usr/local/vesta/bin/v-change-user-password: line 30: validate_format: command not found
/usr/local/vesta/bin/v-change-user-password: line 31: is_object_valid: command not found
/usr/local/vesta/bin/v-change-user-password: line 32: is_object_unsuspended: command not found
/usr/local/vesta/bin/v-change-user-password: line 49: gen_password: command not found
/usr/local/vesta/bin/v-change-user-password: line 49: update_user_value: command not found
/usr/local/vesta/bin/v-change-user-password: line 50: update_user_value: command not found
/usr/local/vesta/bin/v-change-user-password: line 53: log_history: command not found
/usr/local/vesta/bin/v-change-user-password: line 54: log_event: command not found"
Cron: sudo /usr/local/vesta/bin/v-change-user-password demo demo123
"/usr/local/vesta/bin/v-change-user-password: line 17: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-change-user-password: line 18: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-change-user-password: line 29: check_args: command not found
/usr/local/vesta/bin/v-change-user-password: line 30: validate_format: command not found
/usr/local/vesta/bin/v-change-user-password: line 31: is_object_valid: command not found
/usr/local/vesta/bin/v-change-user-password: line 32: is_object_unsuspended: command not found
/usr/local/vesta/bin/v-change-user-password: line 49: gen_password: command not found
/usr/local/vesta/bin/v-change-user-password: line 49: update_user_value: command not found
/usr/local/vesta/bin/v-change-user-password: line 50: update_user_value: command not found
/usr/local/vesta/bin/v-change-user-password: line 53: log_history: command not found
/usr/local/vesta/bin/v-change-user-password: line 54: log_event: command not found"
Re: Demo Account Setup
Check sudoers and user there (can he sudo or not)hafeezksa wrote:There is error as below: (centos 6)
Cron: sudo /usr/local/vesta/bin/v-change-user-password demo demo123
Re: Demo Account Setup
Yes, this command is working manually using sudo but using vesta cron I received above error in my email from system.
Re: Demo Account Setup
Code: Select all
export VESTA=/usr/local/vesta/;sudo /usr/local/vesta/bin/v-change-user-password demo demo123
Re: Demo Account Setup
Thanks, It is working without any problem.skurudo wrote:Try this commandCode: Select all
export VESTA=/usr/local/vesta/;sudo /usr/local/vesta/bin/v-change-user-password demo demo123
Re: Demo Account Setup
Ok, it's good to hear.hafeezksa wrote: Thanks, It is working without any problem.