LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2014, 05:26 PM   #1
thechristianhippie
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Question Can't log out of guest session


I returned from an errand to find my daughter had logged in to a guest session on my linux mint 16 computer to do school work. I attempted to "logout" and it only flashes black for a second, plays the startup tune and returns me to guest session. The same happens with "switch user" and when I restart the computer.

Why can't I escape this guest session? PLEASE HELP!

Distributor ID: LinuxMint
Description: Linux Mint 16 Petra
Release: 16
Codename: petra

Here is the contents of my lightdm.conf file if that helps:
Quote:
[SeatDefaults]
user-session=ubuntu
greeter-session=unity-greeter
and what I've done in terminal so far:
Quote:
rachel@rachel-DX4870 ~ $ sudo gedit /etc/lightdm/lightdm.conf
[sudo] password for rachel:

(gedit:7545): Gtk-WARNING **: cannot open display:
rachel@rachel-DX4870 ~ $ sudo logout -guest
sudo: logout: command not found
rachel@rachel-DX4870 ~ $ logout -guest
-bash: logout: -guest: numeric argument required
rachel@rachel-DX4870 /home/guest $ sudo login
rachel-DX4870 login: rachel
Password:
Last login: Mon Apr 28 16:50:13 CDT 2014 on pts/0
Welcome to Linux Mint 16 Petra (GNU/Linux 3.11.0-14-generic x86_64)

Welcome to Linux Mint
* Documentation: http://www.linuxmint.com
rachel@rachel-DX4870 ~ $ pkill -KILL -u guest
pkill: killing pid 6241 failed: Operation not permitted
pkill: killing pid 6251 failed: Operation not permitted
pkill: killing pid 6334 failed: Operation not permitted
pkill: killing pid 6337 failed: Operation not permitted
pkill: killing pid 6338 failed: Operation not permitted
pkill: killing pid 6348 failed: Operation not permitted
pkill: killing pid 6352 failed: Operation not permitted
pkill: killing pid 6355 failed: Operation not permitted
pkill: killing pid 6369 failed: Operation not permitted
pkill: killing pid 6375 failed: Operation not permitted
pkill: killing pid 6381 failed: Operation not permitted
pkill: killing pid 6396 failed: Operation not permitted
pkill: killing pid 6405 failed: Operation not permitted
pkill: killing pid 6409 failed: Operation not permitted
pkill: killing pid 6417 failed: Operation not permitted
pkill: killing pid 6419 failed: Operation not permitted
pkill: killing pid 6420 failed: Operation not permitted
pkill: killing pid 6421 failed: Operation not permitted
pkill: killing pid 6425 failed: Operation not permitted
pkill: killing pid 6435 failed: Operation not permitted
pkill: killing pid 6441 failed: Operation not permitted
pkill: killing pid 6442 failed: Operation not permitted
pkill: killing pid 6452 failed: Operation not permitted
pkill: killing pid 6456 failed: Operation not permitted
pkill: killing pid 6461 failed: Operation not permitted
pkill: killing pid 6469 failed: Operation not permitted
pkill: killing pid 6478 failed: Operation not permitted
pkill: killing pid 6714 failed: Operation not permitted
pkill: killing pid 6715 failed: Operation not permitted
pkill: killing pid 6718 failed: Operation not permitted
pkill: killing pid 6719 failed: Operation not permitted
pkill: killing pid 6838 failed: Operation not permitted
pkill: killing pid 6845 failed: Operation not permitted
pkill: killing pid 6846 failed: Operation not permitted
pkill: killing pid 7024 failed: Operation not permitted
pkill: killing pid 7230 failed: Operation not permitted
rachel@rachel-DX4870 ~ $ sudo pkill -KILL -u guest
I've even forced guest logout and it just flashes to the black screen, plays the tune, and logs me back in as guest >
Also, going into system settings, I cannot select "users and groups" or "login screen" to make changes from there!

tried going into recovery console and using the root console to edit lightdm. didn't work. Finally found this thread:
http://ubuntuforums.org/showthread.php?t=1968155

followed these steps:
"1.Ctrl Alt F1, login
2.Run these commands:

Code:
sudo apt-get install gdm
sudo dpkg-reconfigure gdm
3.That installs GDM, and you will need to set it as default in the second command.
4.Reboot"

I then had a login screen, and logged into my session! ESCAPED GUEST SESSION!!!
So now gdm is default? How to repair mdm and reset it to default?

Last edited by thechristianhippie; 04-28-2014 at 07:37 PM.
 
Old 04-29-2014, 06:43 AM   #2
EODSteven
Member
 
Registered: Oct 2012
Location: Manchester, Tn
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196

Rep: Reputation: 3
Quote:
echo allow-guest=false | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ub
This doesn't fix your problem but it will keep it from happening again!
 
Old 04-29-2014, 02:09 PM   #3
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,615

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
i don't know about gdm, mdm, or whatever *dm mint is using, but next time you run into this sort of trouble, you can do
Code:
sudo shutdown -h now
which will halt your computer, so next time you boot it up you can log in as your normal user.
i don't know where you got those commands from you were quoting, they don't make much sense to me.

you might have to disable auto login. this is also possible from command line.

you can also just press the power button for about 7 seconds, that should shut down any machine, and linux is much more tolerant to this kind of treatment, compared to windows.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] How to unlock guest session? otoomet Ubuntu 8 10-15-2012 04:22 AM
PHP Site - Controlling User Environment for the Session During Log-in and Log-out devUnix Programming 2 03-27-2012 11:14 PM
Only able to log-in with a Guest Session - User name just returns to login Securejohn Linux - Newbie 1 12-20-2011 06:18 PM
What the %$#@ is pam_unix (cron:session) doing every ten minutes? (/var/log/auth.log) CoffeeKing!!! Linux - Security 3 02-05-2009 08:07 AM
Netscape only session for guest rvilarl Linux - General 2 10-05-2003 02:38 PM


All times are GMT -5. The time now is 02:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration