I am having a situation where I logged in to a RHEL 5.6 system and started VirtualBox. After closing the VirtualBox, I am having a situation where the menu bar which has the option to shutdown or lock screen or log off the system is not present. I believe the reason might be due to network load or something.
I can shutdown or restart from the terminal, but again they take considerable amount of time.
All I need is to just Log off from the system when the menu bar is not present. I need to get the login screen like how we have, when we initially boot the system.
Is there any option to just Log off the user using the terminal?
EDIT:
ps -ax | grep dm output
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ 2352 ? S< 0:00 [rdma_cm] 2908 ? Ss 0:00 rpc.idmapd 3287 ? Ss 0:00 sendmail: accepting connections 3297 ? Ss 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue 3504 ? Ss 0:00 /usr/sbin/gdm-binary -nodaemon 3547 ? S 0:01 /usr/sbin/gdm-binary -nodaemon 3549 ? S 0:00 /usr/libexec/gdm-rh-security-token-helper 5080 tty7 Ss+ 7:20 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7 18166 pts/1 S+ 0:00 grep dm