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 Automation BSD Backup Bash Bluecoat CMS Chef Cloud Consul Container Containers CouchDB DB DNS Database Databases Docker ELK ElasticSearch Elasticsearch Filebeat FreeBSD GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Icingaweb2 InfluxDB Internet Java Kibana Kubernetes LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Rancher SSL Security Shell SmartOS Solaris Surveillance SystemD TLS Tomcat Ubuntu Unix VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder