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.
Search found 17 matches
- Wed Sep 09, 2015 1:06 pm
- Forum: Web Server
- Topic: Nginx password protect directory
- Replies: 3
- Views: 5219
Nginx password protect directory
Hi, I am trying to password protect a directory on my server with Nginx + Apache. I have added the following lines to /home/admin/conf/web/nginx.conf inside the server { } definition. location ~ ^/secret { root /home/admin/web/domain.com/public_html; auth_basic "Administrator Login"; auth_basic_user...
- Thu Aug 20, 2015 9:43 pm
- Forum: Debian/Ubuntu
- Topic: Adding cron job for backup.sh
- Replies: 10
- Views: 10803
Re: Adding cron job for backup.sh
Unfortunately same error message from cron even after running suggested command as root.
- Thu Aug 20, 2015 11:38 am
- Forum: Debian/Ubuntu
- Topic: Adding cron job for backup.sh
- Replies: 10
- Views: 10803
Re: Adding cron job for backup.sh
Sorry but I'm not following here: If I use sudo on the admin user I have the same problem, it works from console because it asks for password and I am entering it but when cron tries to run it:
Code: Select all
sudo: no tty present and no askpass program specified
- Thu Aug 20, 2015 11:26 am
- Forum: Debian/Ubuntu
- Topic: Adding cron job for backup.sh
- Replies: 10
- Views: 10803
Re: Adding cron job for backup.sh
Code: Select all
bash: /root/backup.sh: Permission denied
I can create the file inside public_html directory but that would make it public and I don't want that.
- Thu Aug 20, 2015 8:10 am
- Forum: Debian/Ubuntu
- Topic: Adding cron job for backup.sh
- Replies: 10
- Views: 10803
Re: Adding cron job for backup.sh
Check your sudo from your user (admin, right?) https://forum.vestacp.com/viewtopic.php?f=10&t=8349&p=27113#p27113 I tried running these commands: mkdir /etc/sudoers.d /usr/local/vesta/upd/add_sudo.sh chmod 0440 /etc/sudoers chown root:root /etc/sudoers chmod 0440 /etc/sudoers.d/admin chown root:roo...
- Thu Aug 20, 2015 7:52 am
- Forum: Debian/Ubuntu
- Topic: Adding cron job for backup.sh
- Replies: 10
- Views: 10803
Re: Adding cron job for backup.sh
Thank you for the suggestions, unfortunately no progress.
I have set SSH Access:bash within VestaCP and I'm still getting the same error:
Code: Select all
-rwxr-xr-x 1 root root 758 Aug 17 14:28 /root/backup.sh
Code: Select all
sudo: no tty present and no askpass program specified
- Thu Aug 20, 2015 6:45 am
- Forum: Debian/Ubuntu
- Topic: Adding cron job for backup.sh
- Replies: 10
- Views: 10803
Adding cron job for backup.sh
Hi, I am running Ubuntu 14.04 + VestaCP and I'm trying to create a cron job for a script located at /root/backup.sh sudo bash /root/backup.sh The error message I'm getting when the cron runs is: sudo: no tty present and no askpass program specified Seeing this I went to sudo visudo and added the fol...