LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2007, 07:53 AM   #1
Vor Kragresh
LQ Newbie
 
Registered: Apr 2007
Location: Monticello, KY.
Distribution: Slackware 11
Posts: 10

Rep: Reputation: 0
Login Manager errors When switching Accounts


Hello again all.
On most of my customers systems I have it clear the screen then show the login prompt. Just recently I learned about the login manager and run level 4. The problem I am having is this. Usually I make a script that sets the system to exit directly back to the login prompt when the user exits xWindows. This is best for most of my clients as they have multiple family members that use the same system, and short of a reboot this gives them the quickest access to an account change. (as far as I know, there may be a faster way.) I have two items I am looking for help on.
1. After I have the login manager up and changed to my specs. If I go to the K menu and try to either a. Hit Switch User then Start New Session or b. select Logout then End Current Session, Instead of getting the command prompt or the GUI, I get nothing. A blank screen. I am not sure if this may be a conflict with the return to login prompt script or a little known problem with the manager. I will fiddle with the script settings and see. Just wanted to throw it out there.

2. I was looking for where, and in what syntax, I need to pass the quiet boot option in the lilo.conf.

As an addendum, I am trying this on a Dell Laptop. Using Slackware 11 and the 2.6.20.4 kernel. The laptop has 4 accounts, only one has the auto start and logout script. For this I made a .bash_profile and set it to if the name and password are correct and they are vc/1 then
startx
clear
logout

The problem with the login manager not restarting happens on all of the accounts not just the one with this script.

Thanks in advance for any and all input

Last edited by Vor Kragresh; 04-18-2007 at 08:09 AM.
 
Old 04-18-2007, 07:49 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
On my system, when I do Logout -> End Current Session, the system returns to the graphical login screen. The login manager applies to all accounts. Perhaps you should just disable the script.

I'm not sure of the exact syntax in lilo.conf, but the line to be added will probably be:
append="quiet="

Last edited by allend; 04-18-2007 at 07:54 PM.
 
Old 04-19-2007, 07:39 AM   #3
Vor Kragresh
LQ Newbie
 
Registered: Apr 2007
Location: Monticello, KY.
Distribution: Slackware 11
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks I will try both of those.
 
Old 04-19-2007, 08:42 AM   #4
Vor Kragresh
LQ Newbie
 
Registered: Apr 2007
Location: Monticello, KY.
Distribution: Slackware 11
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, here is what I tried. I removed the .bash_profile I had created for the demo account so there were no possible conflicts, and tried again. Same result. If the login manager is loaded, and I go to the K menu and select either Switch User, or Logout then End Session, The computer give the K shutdown noise (boo doop) then goes to a black screen with no activity. I have been unable to exit this without a hard powerdown. I have tried,
Ctrl-Alt-Esc
Ctrl-Alt-Delete
Alt-F1 through F8
Ctrl-Esc
Esc
None of these gives even the slightest activity. I then thought maybe I would change a script to see if that would help so I made a .bash_profile for demo with the following in it.
if [ -z "$DISPLAY" ] && [ $(tty) == "/dev/vc/1" ]; then #(the 2.6.20.4 seems to need the vc/1 instead of the standard tty1 directly for this script.)
logout
fi

In the hopes that this might force it to reopen the login manager on KDE exit. The old file read the same but with the
startx
clear
options just above the logout option. This allowed the users to autostart KDE and get directly back to the login prompt on exiting. But I was hoping the login manager would be a more appealing (to the customer) option. I have done a little local testing and all the folks liked the login manager better than the .bash_profile option so if I can get it to logout correctly it will go a long way towards adding to the local Linux community growth.

Last edited by Vor Kragresh; 04-19-2007 at 08:44 AM.
 
Old 04-19-2007, 07:53 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
I suspect that your problem is due to you trying to start another X session when there is already an X session running (started by kdm for the graphical login).
Have a look at /var/log/Xorg.0.log and /var/log/kdm.log. There may be some clues.

The key command for killing an errant X session is Ctrl-Alt-Backspace.
 
  


Reply



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
No accounts to login to after OpenSuse 10.1 install astromac SUSE / openSUSE 1 11-12-2006 04:08 AM
Change/add window manager to login manager kunalagon Debian 3 06-04-2006 03:33 AM
Switching Windows Manager from Failsafe karlt78 Linux - Newbie 2 01-29-2006 02:20 AM
user accounts manager doesn't work in X, RH8 zoli Linux - Software 0 12-13-2002 04:07 PM
Can't login with NIS accounts cindyw Linux - Newbie 0 12-02-2002 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:40 AM.

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