LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 02-24-2013, 08:23 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
Cannot log into SUSE linux using GUI


I have SUSE Linux Enterprise Server 11.

I can ssh onto this using both root and normal user login details.

However, when I use the gui to log in, the screen appears to be letting me log in but then after about 15 seconds the login screen appears again. This happens everytime I try to log in again and again.

What could the problem be? Is the a log file I can tail to see what could be going wrong?
 
Old 02-24-2013, 09:19 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,778
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
While using GUI, are you directly login into the machine? or using some remote tool like VNC etc. for GUI login?
ALso can you check file (if it's there) /etc/pam.d/gdm3 on your that machine?
 
Old 02-24-2013, 09:35 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Quote:
Originally Posted by HarryBoy View Post
I can ssh onto this using both root and normal user login details.
You should not do that. It is a security best practice to deny root to log in locally and over the network.


Quote:
Originally Posted by HarryBoy View Post
Is the a log file I can tail to see what could be going wrong?
Asserting you log in as unprivileged user first check /var/log/{messages,secure} or equivalent and then the ~/.xsession-error*, /var/log/Xorg* and /var/log/*dm* log files for clues.
 
Old 02-24-2013, 09:50 AM   #4
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
re: While using GUI, are you directly login into the machine? or using some remote tool like VNC etc. for GUI login?
I am directly logging onto the machine.

re: ALso can you check file (if it's there) /etc/pam.d/gdm3 on your that machine?
There is gdm file in that location but not gdm3
 
Old 02-24-2013, 09:59 AM   #5
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
re: first check /var/log/messages
If I tail -f /var/log/messages I see the following:

warning gdm-session-worker[20155]: WARNING: gdm_session_settings_load: lang = (null)
crit gdm-simple-greeter[21159]: GLib-GObject-CRITICAL: g_param_spec_flags: assertion `G_TYPE_IS_FLAGS (flags_type)' failed
crit gdm-simple-greeter[21159]: GLib-GObject-CRITICAL: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

re: and then the ~/.xsession-error*, /var/log/Xorg* and /var/log/*dm* log files
I don't see anything in these files that suggest that anything is wrong
 
Old 02-24-2013, 10:15 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Quote:
Originally Posted by HarryBoy View Post
I don't see anything in these files that suggest that anything is wrong
That can mean two things: either no errors get logged or you don't recognize something as related.


Quote:
Originally Posted by HarryBoy View Post
Code:
warning gdm-session-worker[20155]: WARNING: gdm_session_settings_load: lang = (null)
crit gdm-simple-greeter[21159]: GLib-GObject-CRITICAL: g_param_spec_flags: assertion `G_TYPE_IS_FLAGS (flags_type)' failed
crit gdm-simple-greeter[21159]: GLib-GObject-CRITICAL: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed
In a lot of cases there is nfo in lines before and after this event. I suggest you include some more. Also check if all required services are up and running (D-BUS comes to mind), verify your installation is complete (missing packages?), tell us when this first occurred and do check for any software and configuration changes.
 
Old 02-24-2013, 10:21 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,778
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Alright. Can you share /etc/pam.d/gdm?
 
Old 02-24-2013, 10:33 AM   #8
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
re: Also check if all required services are up and running (D-BUS comes to mind)
Yes d-bus is running.

re: verify your installation is complete (missing packages?), tell us when this first occurred and do check for any software and configuration changes.
This is the challenge, I don't know when this first occurred as I didn't set the machine up or own it. I just have to fix it. Re-installing everything from scratch is not an option due to deadlines

re: Can you share /etc/pam.d/gdm?
cat gdm
#%PAM-1.0
auth include common-auth
account include common-account
password include common-password
session required pam_loginuid.so
session include common-session

Thanks for your help guys.
 
Old 02-24-2013, 10:39 AM   #9
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
I'm not a linux wizzkid but I'm guessing that some gdm files have got deleted/corrupted at some stage by someone.

Here is some info, I don't know if it is usefull or not.

Seeing what gdm rpms I have installed:

rpm -qa | grep gdm
gdm-2.24.0-24.85.1
gdm-lang-2.24.0-24.85.1
gdm-branding-upstream-2.24.0-24.85.1

Seeing what files gdm-2.24.0-24.85.1 has installed:
rpm -q -l gdm-2.24.0-24.85.1
/etc/dbus-1/system.d/gdm.conf
/etc/gconf/schemas/gdm-simple-greeter.schemas
/etc/gdm
/etc/gdm/Init
/etc/gdm/Init/Default
/etc/gdm/PostLogin
/etc/gdm/PostLogin/Default
/etc/gdm/PostSession
/etc/gdm/PostSession/Default
/etc/gdm/PreSession
/etc/gdm/PreSession/Default
/etc/gdm/Xsession
/etc/gdm/gdm.schemas
/etc/gdm/gdm_sysconfig.conf
/etc/pam.d/gdm
/etc/pam.d/gdm-autologin
/sbin/conf.d/SuSEconfig.gdm
/usr/bin/gdm
/usr/bin/gdm-screenshot
/usr/bin/gdmflexiserver
/usr/lib/gdm
/usr/lib/gdm/gdm-crash-logger
/usr/lib/gdm/gdm-factory-slave
/usr/lib/gdm/gdm-host-chooser
/usr/lib/gdm/gdm-product-slave
/usr/lib/gdm/gdm-session-worker
/usr/lib/gdm/gdm-simple-chooser
/usr/lib/gdm/gdm-simple-greeter
/usr/lib/gdm/gdm-simple-slave
/usr/lib/gdm/gdm-user-switch-applet
/usr/lib/gdm/gdm-xdmcp-chooser-slave
/usr/lib64/bonobo/servers/GNOME_FastUserSwitchApplet.server
/usr/sbin/gdm
/usr/sbin/gdm-restart
/usr/sbin/gdm-safe-restart
/usr/sbin/gdm-stop
/usr/share/doc/packages/gdm
/usr/share/doc/packages/gdm/AUTHORS
/usr/share/doc/packages/gdm/COPYING
/usr/share/doc/packages/gdm/ChangeLog
/usr/share/doc/packages/gdm/NEWS
/usr/share/doc/packages/gdm/README
/usr/share/gdm
/usr/share/gdm/autostart
/usr/share/gdm/autostart/LoginWindow
/usr/share/gdm/autostart/LoginWindow/at-spi-registryd.desktop
/usr/share/gdm/autostart/LoginWindow/gdm-simple-greeter.desktop
/usr/share/gdm/autostart/LoginWindow/gnome-mag.desktop
/usr/share/gdm/autostart/LoginWindow/gnome-power-manager.desktop
/usr/share/gdm/autostart/LoginWindow/gnome-settings-daemon.desktop
/usr/share/gdm/autostart/LoginWindow/gok.desktop
/usr/share/gdm/autostart/LoginWindow/metacity.desktop
/usr/share/gdm/autostart/LoginWindow/orca-screen-reader.desktop
/usr/share/gdm/gdb-cmd
/usr/share/gdm/gdm-greeter-login-window.glade
/usr/share/gnome-2.0/ui/GNOME_FastUserSwitchApplet.xml
/usr/share/icons/hicolor/16x16/apps/gdm-xnest.png
/usr/share/icons/hicolor/32x32/apps/gdm-setup.png
/usr/share/icons/hicolor/32x32/apps/gdm-xnest.png
/usr/share/pixmaps/faces
/usr/share/pixmaps/faces/astronaut.jpg
/usr/share/pixmaps/faces/baseball.png
/usr/share/pixmaps/faces/butterfly.png
/usr/share/pixmaps/faces/cat-eye.jpg
/usr/share/pixmaps/faces/chess.jpg
/usr/share/pixmaps/faces/coffee.jpg
/usr/share/pixmaps/faces/dice.jpg
/usr/share/pixmaps/faces/energy-arc.jpg
/usr/share/pixmaps/faces/fish.jpg
/usr/share/pixmaps/faces/flake.jpg
/usr/share/pixmaps/faces/flower.jpg
/usr/share/pixmaps/faces/grapes.jpg
/usr/share/pixmaps/faces/guitar.jpg
/usr/share/pixmaps/faces/launch.jpg
/usr/share/pixmaps/faces/leaf.jpg
/usr/share/pixmaps/faces/lightning.jpg
/usr/share/pixmaps/faces/penguin.jpg
/usr/share/pixmaps/faces/puppy.jpg
/usr/share/pixmaps/faces/sky.jpg
/usr/share/pixmaps/faces/soccerball.png
/usr/share/pixmaps/faces/sunflower.jpg
/usr/share/pixmaps/faces/sunset.jpg
/usr/share/pixmaps/faces/tennis-ball.png
/usr/share/pixmaps/faces/yellow-rose.jpg
/usr/share/pixmaps/gdm-foot-logo.png
/usr/share/pixmaps/gdm-setup.png
/usr/share/pixmaps/gdm-xnest.png
/usr/share/pixmaps/gdm.png
/usr/share/pixmaps/nobody.png
/usr/share/pixmaps/nohost.png
/var/lib/gdm
/var/lib/gdm/.gconf.mandatory
/var/lib/gdm/.gconf.mandatory/%gconf-tree.xml
/var/lib/gdm/.gconf.path
/var/log/gdm
/var/run/gdm



Could I try uninstalling all my gdm rpms and reinstalling them again from a SLES DVD??
BUt I need to be carefull not to mess up my system
 
Old 02-24-2013, 11:12 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Quote:
Originally Posted by HarryBoy View Post
I don't know when this first occurred as I didn't set the machine up or own it. I just have to fix it.
Presenting complete information in your original post would have been helpful and efficient.


Quote:
Originally Posted by HarryBoy View Post
I'm guessing that some gdm files have got deleted/corrupted at some stage by someone. Here is some info, I don't know if it is usefull or not.
Run this instead:
Code:
rpm -Vva|grep -v '^\.\{8\}'|tee /tmp/rpmV.txt
Now you can read back "/tmp/rpmV.txt" and attach it or post excerpts from it. BTW you didn't attach / post log output as asked.


Quote:
Originally Posted by HarryBoy View Post
Could I try uninstalling all my gdm rpms and reinstalling them again from a SLES DVD??
The sledgehammer approach (aka windows user reflex) may well fix things but it doesn't require skill and you learn nothing from it. Your choice though.
 
Old 02-24-2013, 12:05 PM   #11
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
attached files

re: rpm -Vva|grep -v '^\.\{8\}'|tee /tmp/rpmV.txt
I have attached this file.


I have also did the following:
1. Killed the gdm process from another command terminal.
2. strace /usr/sbin/gdm &> /tmp/straceOutput.txt

I have attached this file, If you look at line 911 onwards you will see where I entered my username and password and hit enter.
I hope this points out something.


I have also attached the messgaes file.

I viewed these files in notepad++.
Attached Files
File Type: txt rpmV.txt (111.4 KB, 10 views)
File Type: txt straceOutput.txt (100.3 KB, 11 views)
File Type: txt messages.txt (41.9 KB, 9 views)

Last edited by HarryBoy; 02-24-2013 at 12:06 PM.
 
Old 02-25-2013, 06:59 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
Strace shows it's polling like crazy (but what for?) and it seems /opt/mycompanyname/3rdParty/ takes precedence over other system paths. I don't if that's necessary or if that causes trouble. More tangible is that verify shows you've got dependencies you should probably satisfy first:
Code:
]$ grep -i unsatisf rpmV.txt  | grep -v deve
Unsatisfied dependencies for python-venvr-idle-2.6.0-8.9.28.venvr.2.x86_64: python-venvr-base = 2.6.0, /opt/mycompanyname/3rdParty/bin/python2.6
Unsatisfied dependencies for nvr-4.4.0.353-1.x86_64: gstreamer-venvr-ffmpeg = 0.10.9-6
Unsatisfied dependencies for python-venvr-xml-2.6.0-8.9.20.venvr.3.x86_64: python-venvr-base = 2.6.0
Unsatisfied dependencies for libboost_mpi1_39_0-1.39.0-3.4.1.venvr.2.x86_64: libmpi_cxx.so.0()(64bit), libmpi.so.0()(64bit), libopen-pal.so.0()(64bit), libopen-rte.so.0()(64bit)
Unsatisfied dependencies for nvrbuilddeps-4.4.0-56.x86_64: gstreamer-venvr-ffmpeg = 0.10.9-6, libglib-2_0-0 = 2.22.5-0.2.23, gpg2 = 2.0.9-25.33.27.1, rsync = 3.0.4-2.38.1
Unsatisfied dependencies for python-base-hack-32bit-2.6.0-venvr.1.x86_64: python-base = 2.6.0
Unsatisfied dependencies for gnome-applets-2.28.0-2.2.81.x86_64: gnome-applets-lang = 2.28.0
Unsatisfied dependencies for gnome-packagekit-0.3.14-2.78.112.x86_64: gnome-packagekit-lang = 0.3.14
Unsatisfied dependencies for kiwi-instsource-5.02.18-419.1.x86_64: build
Unsatisfied dependencies for python-venvr-tk-2.6.0-8.9.28.venvr.2.x86_64: python-venvr-base = 2.6.0
and there seem to be mode and ownership issues (see 'man rpm': "--setperms" / "--setugids"):
Code:
]$ grep gdm rpmV.txt 
.M...U..    /var/log/gdm
.M......    /var/run/gdm

.M......    /etc/udev
.M...U..    /var/log/gdm
.M......    /var/run/gdm
I don't know if it fixes things but it's worth fixing first IMHO.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't log in with GDM (or GUI) but can log in via CLI with no password after updates. kev717 Sabayon 1 09-12-2010 06:12 PM
how to log in to gui on suse 9.3 pro? lone gunman Linux - Newbie 7 01-26-2006 05:50 PM
Vector Linux & KDE3.1 - log in at GUI alloydog Linux - Newbie 1 05-31-2003 02:00 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration