sudo -k

There are certain files in Ubuntu Linux (or Unix-like systems) that only root user access or edit. How can I edit and/or open files that requires admin (root) access on a Ubuntu Linux?

{ 1 comment }

I use sudo to provide permissions and command execution rights to other users under UNIX and Linux operating systems. However, I noticed something strange about sudo. When executing sudo, it will prompt for the user’s password the first time, but sudo no longer requires a password anymore when re-executing it. Why? Is this is a security risk?