Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was observing the following behaviour:

py script:

os.mkdir(path) #all OK
os.mkdir(path) # permission denied

like I lost my sudo rights after some time ..

share|improve this question

migrated from May 4 '11 at 14:16

This question came from our site for professional and enthusiast programmers.

Do you have access to the root account so that you can change the sudoers file? – rzetterberg May 4 '11 at 11:53
up vote 2 down vote accepted

As stated in the sudo man page, the default timeout is 15 minutes. You can change this timeout in the sudoers file by adding this row (where 30 is half an hour):

Defaults timestamp_timeout=30
share|improve this answer
the timeout is there for a reason. changing it to >10h just for one stupid script is 1) ridiculous and 2) totally unnecessary. – hop May 4 '11 at 13:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .