- All right, let me use sudo visudo on Ubuntu,
and you will notice that Ubuntu is not using vi
as the default editor.
Does that matter? Not at all.
It works in nano as well,
and the line that we need to edit is defaults,
followed by timestamp_type is global,
and timestamp,
timeout is 240.
That's all.
So in nano, we use Control + X and yes,
we wanna save the buffer, and there we go.
That's all.
So from this moment on, sudo ls/root, the regular test.
It is going to create my credentials.
It will catch these credentials for four hours.
So that means I will need
to enter my password again tomorrow.