RedHat specifies the user who automatically logs in after booting

RedHat specifies the user who automatically logs in after booting

Sao Nian Operation and Maintenance Youth

RedHat specifies the user who automatically logs in after booting

Note: I am working on a Linux project recently. The customer environment needs to automatically log in to a certain user when the system is turned on. Even if the user has a password, it can automatically log in. I referred to RedHat7's Desktop Migration and Management Guide, and implemented this function according to the overview inside. It is worth noting that many things are the same between redhat 6 and redhat 7. However, the documentation of redhat 6 is relatively small. The system used in this article is RedHat 6.5.
The management guide address is: https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/7/html/desktop_migration_and_administration_guide/index

Set up automatic login

Note: Users with "Administrator" account type can enable "Auto Login" from the "Users" panel in GNOME "Settings". The system administrator can also manually set up automatic login in the "GDM" custom configuration file according to the following steps:

Example: Set up automatic login for user ywsn

Edit the /etc/gdm/custom.conf file and make sure that the [daemon] section of the file specifies the following:


1[daemon]
2AutomaticLoginEnable=True
3AutomaticLogin=ywsn

Replace ywsn with the user you want to log in automatically. If you are using another system, please modify the corresponding file according to your desktop type.

Guess you like

Origin blog.51cto.com/15082392/2656461