setting permissions to a file from linux.

Chris cwitts at gmail.com
Tue Nov 18 08:07:51 EST 2008


On Nov 18, 2:36 pm, gaurav kashyap <gauravkec2... at gmail.com> wrote:
> Hi all,
> I have a text file in a directory on unix system.
> Using a python program i want to change that file's permissions.
> How could this be done.
>
> Thanks

help(os.chmod)
Help on built-in function chmod in module nt:

chmod(...)
    chmod(path, mode)

    Change the access permissions of a file.

or

os.system('chmod 775 /path/to/filename')



More information about the Python-list mailing list