File Permission in Unix

Dave Swegen dswegen at allstor-sw.co.uk
Wed Nov 14 12:38:22 EST 2001


On Wed, Nov 14, 2001 at 07:04:07PM +0200, Amit Weisman wrote:
> Hi
> How do one creates a file with specified permissions (e.g. , 777) within
> Python ?

os.chmod is your friend. Use os.chown to change ownership of a file.

Cheers
	Dave




More information about the Python-list mailing list