Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Closed TopicStart new topic
> /etc/X11/gdm/PreSession/Default, I am locked out now
TroyR
post Jul 17 2006, 12:04 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 17-July 06
Member No.: 6,783



I was recently given the task at work to put a login banner on a panasonic toughbook laptop with redhat 7 installed. After modifying the /etc/issue file with no success I decided to modify the /etc/X11/gdm/PreSession/Default file and now I can tell that it is working but I am locked out of my computer from all accounts.
The code I added was

if ! gdialog --yesno '\n My Message was here.......\n' 10 10; then
sleep 10
exit 1;
fi

at the beginning of the file. I wanted the banner to be displayed and make the user check if they agree or not before being able to log in. Well my problem now is that I enter in my info to log in as root and I see that the banner is trying to display but it just looks like there is some problem with GDM or something because all it displays is a pretty distorted rainbow of colors for ten seconds and sends me back to the log in screen. I have tried to trick it and see if it would let me in if I just pushed enter to make it think I was agreeeing, but that dint' work. No matter what I do it jsut sends me back to the login screen.

If you know a way that I can still log in with a command line or reset that file I would really love it.
TroyR
Go to the top of the page
 
+Quote Post
DS2K3
post Jul 17 2006, 12:43 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



Press ctrl-alt-F1 to get the first TTY up. You can then login as root, "init 3" to stop the GUI, and "startx" to get back into graphical mode bypassing GDM.

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
TroyR
post Jul 17 2006, 03:13 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 17-July 06
Member No.: 6,783



That was just what I needed. Thanks
Go to the top of the page
 
+Quote Post
DS2K3
post Jul 18 2006, 10:18 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



No Problem

* Closing *

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 08:58 AM