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

  • 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. – rɑːdʒɑ Apr 4 '13 at 16:30

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.

| improve this answer | |
  • 4
    awesome, can you please mark it as the solution? – jjesse Apr 4 '13 at 16:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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