8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » Linux » Here

Linux Auto-Login (Oracle Linux, RHEL, CentOS)

Using automatic login or timed login on a server or your main PC is a really bad idea, but you might want to use this feature on a test VM. These examples work on OL6/OL7 as well as Fedora.

Configure Automatic Login

Edit the "/etc/gdm/custom.conf" as the root user, adding the following lines in the "[daemon]" section. This example automatically logs in as the "oracle" user.

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=oracle

Reboot the machine to test this configuration.

To stop the automatic login, either remove the lines or comment them out with a "#".

[daemon]
#AutomaticLoginEnable=true
#AutomaticLogin=oracle

Configure Timed Login

Edit the "/etc/gdm/custom.conf" as the root user, adding the following lines in the "[daemon]" section. This example logs in as the "oracle" user after a 60 second delay.

[daemon]
TimedLoginEnable=true
TimedLogin=oracle
TimedLoginDelay=60

Reboot the machine to test this configuration.

To stop the timed login, either remove the lines or comment them out with a "#".

[daemon]
#TimedLoginEnable=true
#TimedLogin=oracle
#TimedLoginDelay=60

For more information see:

Hope this helps. Regards Tim...

Back to the Top.