11

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

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

1 Answer 1

22

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.

1
  • 4
    awesome, can you please mark it as the solution?
    – jjesse
    Apr 4, 2013 at 16:38

You must log in to answer this question.

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