No password required for sudo over ssh the second time -


on own machine if start new terminal , perform requires superuser rights have enter password.

however, if login remote machine a second time, not required, how possible? same shell?

ssh remote_machine sudo su # enter password # drop out of remote shell entirely ssh remote_machine # again sudo su # continue without typing password! 

how possible?

from sudo home page (http://www.sudo.ws/sudoers.man.html):

sudoers uses time stamp files credential caching. once user has been authenticated, time stamp updated , user may use sudo without password short period of time (5 minutes unless overridden timeout option). by default, sudoers uses tty-based time stamp means there separate time stamp each of user's login sessions. the tty_tickets option can disabled force use of single time stamp of user's sessions.

it what's happening.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -