Skip to content
  • FOSS WORLD
    • NEWS
    • DISTROWATCH
  • HACKS & TRICKS
    • GENERAL
    • MASTER THE BASH
  • GNU/LINUX SYSADMIN
    • CONTAINERS
    • DESKTOP
    • GENERAL
    • NETWORKING
    • PACKAGE MANAGEMENT
    • SECURITY
    • STORAGE
  • PROGRAMMING IN GNU/LINUX
    • BASH SCRIPTING
    • LINUX KERNEL
    • NETWORK
Search
Close

Openforums

My Linux inspired journey

Tag: tty

Secure the tty devices by disabling root account login

May 10, 2013November 15, 2013 Anoop C SLeave a comment

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

tty1
#tty2
#tty3
#tty4
#tty5
#tty6
#tty7
#tty8

which means root is only allowed to login on tty1.

Recent Posts

  • Tracing “Curl error (6): getaddrinfo() thread failed to start” error with systemd seccomp filters December 15, 2021
  • Stepping in to the world of containers with Samba December 14, 2021
  • New socket_wrapper release with fd-passing support February 9, 2021

Enter your email address to follow this blog and receive notifications of new posts by email.

Tags

bash fedora file gnu/linux grub Linux Linux kernel Password root windows

Author


Free Software enthusiast and Open Source developer

About me

Samba Team
Fedora wiki

Chat with me

@anoopcs

  • IRC (libera.chat and oftc)
  • Matrix (matrix.org)

Archives

Follow me

Mastodon
GitLab
GitHub

Move On

First they ignore you, then they laugh at you, then they fight you, then you win

Communities

Samba
GlusterFS
Fedoraproject
CentOS
Website Powered by WordPress.com.
Back to top
  • Follow Following
    • Openforums
    • Already have a WordPress.com account? Log in now.
    • Openforums
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar