fouadk
January 8th, 2010, 09:05 PM
hi everyone...
im running an apache webserver and using virtual hosting...the folders are located in /var/www...
one of my virtual hosts have chown permission set to root:www-data with chmod 775...
the page is a php script that creats some folders in /home/user/files/desktops and change chown and chmod using linus built in chown and chmod using php exec function...the username are get from winbind...
this script have been working flawlessly for 1 year...yesterday something went wrong and the script cannot change to proper ownership newly created folders...so the newly created folder are with root:root ownership where they should be sampleuser:domain admins instead for example...chmod is working but not chown...
im running ubuntu server 8.04.3...the script worked like a charm for more than a year so i know its doable and it works...as mentioned above, the script permission are root:www-data and www-data is added to the sudoers...
i have no idea how to debug this one...please help and thanks in advance
im running an apache webserver and using virtual hosting...the folders are located in /var/www...
one of my virtual hosts have chown permission set to root:www-data with chmod 775...
the page is a php script that creats some folders in /home/user/files/desktops and change chown and chmod using linus built in chown and chmod using php exec function...the username are get from winbind...
this script have been working flawlessly for 1 year...yesterday something went wrong and the script cannot change to proper ownership newly created folders...so the newly created folder are with root:root ownership where they should be sampleuser:domain admins instead for example...chmod is working but not chown...
im running ubuntu server 8.04.3...the script worked like a charm for more than a year so i know its doable and it works...as mentioned above, the script permission are root:www-data and www-data is added to the sudoers...
i have no idea how to debug this one...please help and thanks in advance