I am a python novice;request all to kindly bear with me.
fd = open('/etc/file','w')
fd.write('jpdas')
fd.close()
The above snippet fails with:
Jagannath-MacBook-Pro:~ jpdas$ python testUmask.py
Traceback (most recent call last):
File "testUmask.py", line 3, in <module>
fd = open('/etc/file','w')
IOError: [Errno 13] Permission denied: '/etc/file'
Any Idea how to create a file in /etc as non-root user?Can i use umask or
chmod.......confused
--
http://mail.python.org/mailman/listinfo/python-list
