Read only files

Discussion in 'Python' started by Pranav Bagora, Jul 19, 2005.

  1. Hello,

    I am getting a permission Denied error when i am
    trying to make changes in some read only files in a
    directory. How do we check and change the read only
    attributes of files in python.

    Please Help,
    Pranav





    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - You care about security. So do we.
    http://promotions.yahoo.com/new_mail
    Pranav Bagora, Jul 19, 2005
    #1
    1. Advertising

  2. Pranav Bagora

    Mike Meyer Guest

    Pranav Bagora <> writes:

    > Hello,
    >
    > I am getting a permission Denied error when i am
    > trying to make changes in some read only files in a
    > directory. How do we check and change the read only
    > attributes of files in python.


    You want the os.stat and os.chmod functions.

    <mike
    --
    Mike Meyer <> http://www.mired.org/home/mwm/
    Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
    Mike Meyer, Jul 20, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vnssoftware
    Replies:
    4
    Views:
    458
    Dmitry R
    Dec 31, 2003
  2. keithb
    Replies:
    2
    Views:
    7,991
    keithb
    Jun 7, 2006
  3. Dirk Lüsebrink
    Replies:
    4
    Views:
    168
    Dirk Lüsebrink
    Jan 1, 2007
  4. PerlFAQ Server
    Replies:
    0
    Views:
    579
    PerlFAQ Server
    Feb 11, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    576
    PerlFAQ Server
    Mar 9, 2011
Loading...

Share This Page