Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was observing the following behaviour:

py script:

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

like I lost my sudo rights after some time ..

share|improve this question

migrated from stackoverflow.com May 4 '11 at 14:16

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

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

1 Answer 1

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
2  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.