LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-02-2008, 09:48 AM   #1
vlad132
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
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
 
Old 12-02-2008, 09:59 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
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.
 
Old 12-02-2008, 10:01 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Also fsck all partitions from a live/fedora cd
 
Old 12-02-2008, 10:56 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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.
 
Old 12-02-2008, 12:36 PM   #5
vlad132
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 12-02-2008, 04:02 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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.
 
Old 12-03-2008, 01:15 AM   #7
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
post your nsswitch if youu can or check if
passwd: files
shadow: files
group: files
 
Old 12-03-2008, 07:05 AM   #8
vlad132
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
the line with the ldap loiks like this:
passwd: files nis ldap hesiod winbind
 
Old 12-03-2008, 12:38 PM   #9
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
remove these if you are not using them" nis ldap hesiod winbind "
from "passwd: files nis ldap hesiod winbind"
 
Old 12-04-2008, 03:34 PM   #10
vlad132
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
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 ...
 
Old 12-04-2008, 03:40 PM   #11
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
comment out that line like this,
#bind_policy hard
 
Old 12-05-2008, 03:33 AM   #12
vlad132
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
So it was like that , and i changed it to
bind_policy soft
 
  


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
Login Screen and Login Photo problems? host Linux - Software 0 02-21-2005 06:56 AM
Login Problems belkira Mandriva 18 05-27-2004 10:49 PM
Login problems wass29 Linux - General 2 09-15-2003 09:51 AM
login problems that NEVER GO AWAY bandofmercy Linux - General 10 04-11-2003 10:37 AM
Login problems??? kamak Linux - Security 2 03-18-2003 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03: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