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