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:

This entry was posted on Friday, February 12th, 2010 at 11:21 pm and is filed under University life.

You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a response, or trackback from your own site.

Leave a Reply