File permission in Ubuntu
I use ubuntu. I found a problem in ubuntu file permission. I have made a php script to delete a file. The file run on CentOs server correctly, but if I run that script on my ubuntu localhost, it shows me a warning saying “Warning: unlink(toberemoved.php) [function.unlink]: Permission denied in /var/www/remover.php on line 5“.
The problem is that in ubuntu root access is not available directly. To create delete file we need to issue an sudo command, that asks for the root password. But who run the php script is a client, who have no root access, that is why it shows an warning. If you are in such situation issue a command “sudo chmod +w foldername”, so that the client can wirte and delete file to that folder.
Tags:file permission in ubuntu
