Well I've redone some of the tests of the PHP script delapacheuserfiles.php today - with the result of finding some bugs in my own script. D'oh! One of the most important bug is the following: When you launch the script and the root-folder (the lowest folder which is owned by the apache user) is not chmodded 777, the sub-files and sub-folders within will be deleted BUT this folder itself will stay as it is. Even the permissions will stay the same, so it's not even possible to delete it via FTP. I've now changed the handling for the lowest apache-user-owned folder. In some cases it won't be deleted, but the permissions will be changed so the FTP user can still delete it. New updated version can be found in IT Howto's / PHP Script: Delete files and folders created by Apache user.
No comments yet.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Influx Internet Java KVM Kibana Kodi Kubernetes LVM LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Observability Office OpenSearch PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder