How to enable automatic user logins in CentOS 7 and GNOME

- by

CentOS-LogoIf you’ve read my previous article about how to enable automatic logins on CentOS 6, and it sounded a little daunting, you may be pleased to hear that it’s a little easier to accomplish the same thing on CentOS 7.1.

If you’re using GNOME in a single user environment, and you’re confident that nobody else will use your system, you can enable auto-logins without the password questions like this:

  1. Login to GNOME as usual
  2. Find your name at the top right and click on it
  3. Now select Settings
  4. In the new window that opens, find Users
  5. Click on Unlock at the top right
  6. Select your own user and turn on Automatic Logins

You need supervisor privileges to make this change. Next time you restart your system, you’re logged in automatically.

Screen Shot 2015-08-13 at 10.19.12

Thank you, CentOS!

If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

12 thoughts on “How to enable automatic user logins in CentOS 7 and GNOME”

  1. the issue can be fixed by restart the gdm service , but now Idon’t know how to call “service gdm restart ” after logout ,I try to udpate the /etc/gdm/PostSession/Default to call a scripts to do that ,but not work

  2. You can only call that command when you’re logged in, either as yourself or as root (if you’re not root, you probably need to prefix this command with sudo). It’s simple: log in manually, then open a terminal shell window and type the command. TO test if it’s working, log back out and see if you’re automatically logged in.

    gdm will also restart if you reboot the whole system.

    Good luck!

Leave a Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.