One Day One Cmd

Place for playing with commands…

Day 59: $ sudo -k

ODOC: sudo -k -k options is used to kill the time stamp for sudo. Means next time if we run sudo the password will be required to continue. Which is useful when we are using the password in public places some people sit around us.

Once a user has been authenticated by sudo, the timestamp is updated and the user can use sudo without password for a short period of time, by default it wont ask for 15 minutes.

Ex: bala@bala:~$ sudo -k fdisk -l
[sudo] password for bala:

Do it again & see the stuff…


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: