Most often GNU/Linux users come across the sudo utility that allows users to run programs with the security privileges of another user (normally the superuser, or root). Its name is a concatenation of the su command (which grants the user a shell of another user, normally the superuser) and “do”, or take action. But on executing any command with sudo requests the user to provide his own password once and can be used afterwards. For that to occur the particular user must be in sudoers file (refer to my post regarding adding user for sudo privileges.
$ sudo vim /etc/sudoers
[sudo] password for anoop:
To disable this sudo password prompt edit the /etc/sudoers file as follows.
Read More »
GNU/Linux system provides means for using the terminal devices namely tty1,tty2,…As a part of gnu/linux general security we can enable/disable root login on these devices. Each of the tty devices can be accessed by pressing Ctrl+Alt+F1 or Ctrl+Alt+F2… The /etc/securetty file allows you to specify which tty devices the root user is allowed to login on. The /etc/securetty file is read by the login program. Its format is a list of the tty devices names allowed, and on all others tty that are commented out or doesn’t appear in this file, root login is disallowed.To allow root access in a particular tty we just need to uncomment that line.
Edit the securetty file (sudo nano /etc/securetty) and comment out the following lines
which means root is only allowed to login on tty1.