How to create a file with read access rights

Evan Klitzke evan at yelp.com
Thu Jun 21 12:17:10 EDT 2007


On 6/21/07, Johny <python at hope.cz> wrote:
> Is  it possible to  create a file on Linux  with access rights?
> For example
>  owner can read and write into the file
> others can only read from the file
> Thanks for replies

Look at the documentation for os.open (for new files) and os.chmod
(for existing files).


-- 
Evan Klitzke <evan at yelp.com>



More information about the Python-list mailing list