os.remove() permission problem

Martijn Arts arts.martijn at gmail.com
Mon Nov 30 15:50:34 EST 2009


On Mon, Nov 30, 2009 at 8:21 PM, Victor Subervi <victorsubervi at gmail.com>wrote:

> Hi;
> I get the following error when I try
> os.remove(file)
>
> *OSError*: [Errno 13] Permission denied: 'particulars.py'
>       args = (13, 'Permission denied')
>       errno = 13
>       filename = 'particulars.py'
>       strerror = 'Permission denied'
>
> Here are the permissions:
>
> -rwxr-xr-x  1 root root   455 Nov 28 05:58 particulars.py
>

Try chmodding the file to 755.


> When I go into the python interpreter and execute that statement, it
> succeeds. What have I missed?
> TIA,
> Victor
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091130/4917e778/attachment-0001.html>


More information about the Python-list mailing list