Linux (Ubuntu) not backing up WOW. Just simply WOW......
Decided to do a little testing with users, it appears that when a system user logs in and creates a backup plan, that plan is written to the etc/plans directory with their permissions. ~ OK, the cbb process appears to be running as root, which makes no sense that it should not have permission to open various directories ???
But that's not the horrifying part. I was able to create an FTP user VIA the hosting control panel (Plesk) - guess who was able to log in as a lowly unprivileged FTP user and potentially make a backup of all my data to any location they desire?
-rw-r--r-- 1 root root 4512 Nov 4 21:52 {3f13ce43-fd5d-4403-aeb1-52d3b96f0dbc}.cbb
-rw-r--r-- 1 root root 4260 Nov 6 18:19 {48fc42a5-08da-4e6b-943c-b9f4596779fc}.cbb
-rw-r--r-- 1 randy_5643 psacln 4302 Nov 6 18:30 {6d8321b7-d463-4736-8b73-846784afff94}.cbb
-rw-r--r-- 1 root root 4330 Nov 6 18:26 {eb078eb8-7e04-47ac-9c64-f90d681cefab}.cbb
In theory, one of my hosting clients can now create an FTP account, log into the CloudBerry web access console and start backing up data to wherever they want.
IMO access to the web app is basically not controlled. kill -9 etc.
2. see above
3. I have several hundred websites in the /var/www/vhosts/ directory files I would like to exclude are logs and caches...
/var/www/vhosts/DOMAIN_1/logs/LOGFILES
/var/www/vhosts/DOMAIN_2/logs/LOGFILES
etc
I would like to be able to set wildcards to exclude files and directories:
exclude:
/var/www/vhosts/*/logs/*.*
<excludeFilesWildcard>
<value>/var/qmail/mailnames/*/*/Maildir/new/*</value>
<value>/var/qmail/mailnames/*/*/Maildir/cur/*</value>
<value>/var/qmail/mailnames/*/*/Maildir/tmp/*</value>
<value>/var/lib/php/session/*</value>
<value>/var/qmail/queue/*/*/*</value>
<value>/var/www/vhosts/*/statistics/*/*</value>
<value>/var/www/vhosts/*/web_users/*</value>
<value>/var/www/vhosts/*/tmp/*</value>
<value>/var/www/vhosts/system/*/statistics/*/*</value>
<value>/var/www/vhosts/system/*/logs/*</value>
<value>/var/www/vhosts/*/logs/*</value>
</excludeFilesWildcard>