LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Login problems (https://www.linuxquestions.org/questions/linux-newbie-8/login-problems-687733/)

vlad132 12-02-2008 09:48 AM

Login problems
 
Hi folks
Sure hope somebody knows smth about this.
I'm using Fedore 9 (fairly new), and recently and out of the blue, it's giving me a hard time loging in as user. It looks like it hangs, but in fact it takes a couple of hours to start the desktop (gnome). I tried starting it in text only - same thing. I can start as root, both on desktop and text line only, no problem, but as user it just takes ages.Tried creating another user, but the problem persists. I should add when I created another user, it took another 2 hrs to do so. I suspect the problem is somewhere with the privileges set for user, cause root bypasses most of those settings, but don't know what / where
Cheers

amani 12-02-2008 09:59 AM

Welcome to LQ!

1. Take a look at the logs in /var/log esp the boot log
2. Disable unused services
#system-config-services

You may be having h/w problems.

amani 12-02-2008 10:01 AM

Also fsck all partitions from a live/fedora cd

onebuck 12-02-2008 10:56 AM

Hi,

Sounds like a permissions issue to me. Make sure when you create a user that they are in the proper groups;

Code:

typical user groups;

users floppy audio video cdrom plugdev

Make sure the '/etc/X11/xorg.conf' is properly setup.

vlad132 12-02-2008 12:36 PM

I've checked the file messages in var/log, and I can see that in the time it took to start the user session, it's full of messages like these:
Dec 2 10:05:42 localhost gdm-session-worker[3571]: nss_ldap: reconnecting to LDAP server (sleeping 32 seconds)...
Dec 2 10:06:14 localhost gdm-session-worker[3571]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.1/: Can't contact LDAP server

and these

Dec 2 10:09:27 localhost dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://127.0.0.1/: Can't contact LDAP server
Dec 2 10:09:27 localhost dbus-daemon: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...

and these

10:53:45 localhost perl: nss_ldap: could not search LDAP server - Server is unavailable
Dec 2 10:53:46 localhost perl: nss_ldap: failed to bind to LDAP server ldap://127.0.0.1/: Can't contact LDAP server
Dec 2 10:53:46 localhost perl: nss_ldap: failed to bind to LDAP server ldap://127.0.0.1/: Can't contact LDAP server
Dec 2 10:53:46 localhost perl: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Dec 2 10:53:50 localhost perl: nss_ldap: failed to bind to LDAP server ldap://127.0.0.1/: Can't contact LDAP server
Dec 2 10:53:50 localhost perl: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...

and loads of other like that, basically just the process after "locahost" variates, but the error message is the same a few pages full
What does this mean? Could this be the problem. I keep seeing "sleep for x seconds", I think all those seconds together amounts to the time it takes it to start up!

onebuck 12-02-2008 04:02 PM

Hi,

You don't have a LDAP server setup. You could use 'LDAP Tutorial: Deploying OpenLDAP' for 'LDAP Directory Server Installation and configuration (V2.x / V1.2)'. Go to the tutorial to see some easy checks.

hasanatizaz 12-03-2008 01:15 AM

post your nsswitch if youu can or check if
passwd: files
shadow: files
group: files

vlad132 12-03-2008 07:05 AM

the line with the ldap loiks like this:
passwd: files nis ldap hesiod winbind

hasanatizaz 12-03-2008 12:38 PM

remove these if you are not using them" nis ldap hesiod winbind "
from "passwd: files nis ldap hesiod winbind"

vlad132 12-04-2008 03:34 PM

Big thx to everyone who's contributed
In the end what apparently did the trick was changing bind policy to soft in /etc/ldap.conf.
It still can't find server but at least in doesnt take ages trying to find it
Probably unrelated to this problem, it now started to shut down by its own will (not always but every so often). The log simply says: gconfd (gdm-2536): Exiting
I guess I'll have to live with it ...

hasanatizaz 12-04-2008 03:40 PM

comment out that line like this,
#bind_policy hard

vlad132 12-05-2008 03:33 AM

So it was like that , and i changed it to
bind_policy soft


All times are GMT -5. The time now is 08:10 PM.