LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-07-2011, 06:20 AM   #1
SupportTech
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
Question Ubuntu GDM - how to abort the login process


Hi

I'm trying to compile a small script that is run as soon as the user enters his/her username and password into gdm login screen.

The script will prompt a message asking if the user wants to continue to login or abort and return to the login screen.

All I need to know is how can I abort the login process if the users select "No" to continue. The rest I'm pretty much sorted with.

Thanx in advance.

Last edited by SupportTech; 03-07-2011 at 06:39 AM. Reason: better title description
 
Old 03-08-2011, 09:22 AM   #2
SupportTech
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up Solution

Found solution

See http://projects.gnome.org/gdm/docs/2...iguration.html

The GDM startup, login and logout process is defined by the Default file inside each of the following folders inside the /etc/gdm/ folder (See doc above):

Init/
PostLogin/
PreSession/
PostSession/

Inside the /etc/gdm/ folder though there is a file called Xsession. This file actually seems to handle to login process from when the user enter his/her username and password in the GDM login screen until the user's desktop appears.

By inserting "exit" in the beginning section of this script, you effectively abort the login process and Ubuntu automatically returns you to the GDM login screen.

Hope this helps some one.
 
  


Reply

Tags
gdm, login, return, script, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Start X on boot under a user login on Ubuntu (no gdm, kdm or xdm) zagzagel Linux - Software 2 07-16-2010 01:24 PM
FTP script with user prompting/redirects/renaming tazer92 Linux - Newbie 1 05-13-2009 12:11 PM
Prompting a user for a password within a script kaplan71 Linux - Software 4 09-10-2007 01:38 PM
How to run a Script as root, after Login as User, in GDM MHOOO Red Hat 14 03-08-2005 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration