Restricting root logins
Pressing Ctrl-Alt-F4 will give you a prompt for tty3. Note that it is one number less. Take a look at the contents of /etc/securetty file. To prevent root from logging in on this device, take out tty3 from this listing. Note, you can always login as another user, then, su to root. Below is an example of the default "/etc/securetty" that allows root to login to everything:
# cat /etc/securetty
console vc/1 vc/2 vc/3 vc/4 vc/5 vc/6 vc/7 vc/8 vc/9 vc/10 vc/11 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9 tty10 tty11
- 0 Comment
- Mike Chirico
- 06 Oct 2008, 13:27
-
You must be login first or sign-up for an account to post comments.
USERBOX
CATEGORIES
MOST READ TODAY
- Redirecting tcp / udp ports with socat
- Syntax highlighting in less
- Disabling reverse dns lookups in ssh
- Passwordless sudo setup
- Users with /bin/false shell to login on vsftpd
- Scp resume
- Using lsof utility
- Enabling remote desktop on a VirtualBox Machine
- XFS Filesystem has duplicate UUID problem
- Replication in MySQL
LAST ADDED
- Using iPhone internet sharing over bluetooth under Linux
- Using USB sound card with amarok
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary
