About amalgjose
I am an Electrical Engineer by qualification, now I am working as a Software Architect. I am very much interested in Electrical, Electronics, Mechanical and now in Software fields. I like exploring things in these fields. I love travelling, long drives and music.

8 Responses to Disabling the GUI login mode of Redhat or CentOS servers

  1. Niranjan says:

    can we do this without changing inittab file editing

    • amalgjose says:

      Yea… it is possible. Removing the corresponding module is another way. But the problem with removal is , if we need it after sometime, then we need to install it again.
      Inittab editing is just disabling the UI only, not removing.
      If it is required, we can load it also.

  2. ssbarnea says:

    The new way of doing it on system systesm (rhel7,…) is `systemctl set-default multi-user.target`

  3. Mart says:

    Doesn’t work anymore, now it is “systemctl get-target” to see default and “systemctl set-target multi-user.target” to switch GUI off (old init 3) or “systemctl set-target graphical.target” (old inti 5).

    • amalgjose says:

      Thanks for notifying me. This article was posted in 2013. I have made the changes and included the commands for CentOS 7/RHEL 7 also.

      • Maksim Zinal says:

        Hi! The commans for RHEL/CentOS 7 and 8 are not “set-target” and “get-target”, they are “set-default” and “get-default” instead.

  4. romka says:

    On RHEL 7 type – [systemctl set-default multi-user.target] without brackets for non GUI RHEL 7

  5. ebadmail says:

    For Centos 7 & it’s “systemctl get-default” To see the default parameters.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: