Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

sudo -i in the terminal will made normal user into root user & after changing into root user if we exit then again we will be back to normal user.If we try again , next time it directly takes me into a root user without asking the password.

So why this is happening and what's the timeout of this facility?

enter image description here

share|improve this question
    
AFAIK this holds for all sudo commands in a terminal session. Just to avoid typing the password every time. –  don.joey Apr 4 '13 at 16:26
    
@Private yeah answer gave me link too which can explain me everything about it . Thank you my friend. –  Raja Apr 4 '13 at 16:30

1 Answer 1

up vote 22 down vote accepted

I maybe misunderstanding your question but it seems like you are asking what is the timeout for using sudo.

By default sudo remembers your password for 15 minutes. For more information and how to change that take a look at: RootSudoTimeout which talks about the timeout for sudo.

share|improve this answer
1  
This exactly I want. Thank you,:) –  Raja Apr 4 '13 at 16:29
4  
awesome, can you please mark it as the solution? –  jjesse Apr 4 '13 at 16:38

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.