Increase security in Ubuntu

Ubuntu, by default allows several minutes between getting administrative access and access being rescinded. This period of access is considered by some to be a loophole in the system security. Here is how I reduce this period down to zero, meaning that every time someone wants to run an administrative command, they need to know the administrative password

PLEASE BE CAREFUL – a typo in this file will stop you from ever getting administrative access without re-installing again !
Open the terminal and type in the following text:

sudo nano -w /etc/sudoers

This file will allow you to change several settings, but the one we are interested in is as follows:

Defaults env_reset

to (please note - no space before or after the comma - and this is all in ONE LINE):

Defaults env_reset,timestamp_timeout=0

Now save your file and exit.

All statements made on - this website - are purely opinions of the author in the hope that, where appropriate, they may prove useful or informative.
No responsibility is accepted or taken for any action as a result of this website, or information used from this website.