LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-09-2005, 01:46 PM   #1
freedo5
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
Unable to Login to XSession with non root users


I am running RH WS v4 with runinit set to 5. If I log in as root, XSession starts just fine. However, if I log in as a non-root user, I get a dialog box that pops up stating 'Your session has lasted less than 10 seconds.........check the ~/.xsession-errors file. When I do see this:

/etc/X11/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/X11/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a -w /val/log/wtmp
-u /var/run/utmp -x "/var/gdm/:0.Xservers" -h "" "" -l ":0" "mlriichar" Agent pid 7096
/etc/X11/xdm/Xsession: line 80: /usr/bin/dbus-launch --exit-with-session
/etc/X11/xinit/Xclients: No such file or directory
/etc/X11/xdm/Xsession: line 80: exec: /usr/bin/dbus-launch --exit-with-session
/etc/X11/xinit/Xclients: cannot execute: No such file or directory

I'm using NFS and autofs to mount the home directories. I'm at a loss as how to proceed
 
Old 04-11-2005, 07:29 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

The reason u can not lauch with users it sounds like a permissons problem as the xclient file can not be read from the NFS drives. Try login as a normal user and see if u can get a home directory if not then like I said check the file permissons. Reason u are able to login as root is because root home directory is /root

cheers
 
Old 04-11-2005, 11:50 AM   #3
freedo5
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I'll try that and then get back with you. However, I wanted to ask about you mentioning the 'xclient file can not be read from the NFS drives'. If i do a failsafe start and just get into a terminal window using a non-root user, I can login fine. If I do a cd /home/mlrichar (where mlrichar is my userid and home directory on the NFS server), I can ls and mkdir jsut fine. I'm trying to get the setup in place where I don't have any local userids and directories stored on the workstation. All the id's authenticate using LDAP and they are authenticating correctly. I'd like the users to acess their directories, including home, from a NFS server. I've been working with RHEL 3&4 for about 6 months now. I come from a mainly windows background where home directories plus others can be assigned when the login to a domain controller. I thought NFS would allow me to do the same? Let me know please if my reasoning or thinking is off. Thanks again and I'll let you know about logging in with a local user.
 
Old 05-20-2005, 06:58 AM   #4
a_kleopatra
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Hi

you have to check if you can see your shell entries in /usr/bin/getent passwd.
If there is no entry like /bin/sh or /bin/bash you are not able to login as LDAP user.
Probably the Access Control rules for the attr=loginShell in /etc/openldap/slapd.conf are not set accurate.

Bye

Alex

Last edited by a_kleopatra; 05-22-2005 at 02:35 AM.
 
Old 01-11-2007, 05:44 AM   #5
asmar
LQ Newbie
 
Registered: Oct 2004
Location: To the best place in the world...Greece
Distribution: Debian, SuSE, CentOS, Solaris, Ubuntu
Posts: 25

Rep: Reputation: 15
Can anyone please post the solution to the above problem?
The only entry related with loginShell is the following one:

access to attrs=loginShell,shadowLastChange,gecos,userPassword,sambaNTPassword,sambaLMPassword
by dn="cn=admin,dc=ldapserver,dc=mydomain,dc=com" write
by anonymous auth
by self write
by * none

Any help is much appreciated.

Thanks

Quote:
Originally Posted by a_kleopatra
Hi

you have to check if you can see your shell entries in /usr/bin/getent passwd.
If there is no entry like /bin/sh or /bin/bash you are not able to login as LDAP user.
Probably the Access Control rules for the attr=loginShell in /etc/openldap/slapd.conf are not set accurate.

Bye

Alex
 
Old 01-11-2007, 07:58 PM   #6
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 193

Rep: Reputation: 33
I agree with Alex, comment #4. You shoule be POSIXaccount as first, which contains login shell information.

And, you'd better log in as root to check why /etc/X11/xinit/xclient miss? "startx" first check ~/.xclient, if not exist, turn to /etc/X11/xinit/xclient(Read /etc/X11/xinit/xinitrc script, you'll know more).

Third point, can you review the timeout setting in /etc/auto.master:
Code:
# /home /etc/auto.home  --timeout=60
for example, sets a timeout of 60 seconds; if the automounted directory is not used or accessed in this time, it is automatically unmounted. Note,If you were to make NFS directory as your current directory, the Automounter would ignore any timeouts. Otherwise, HOME is automatically unmounted according to the timeout.

Last edited by PhillipHuang; 01-11-2007 at 08:00 PM.
 
Old 01-12-2007, 02:34 AM   #7
asmar
LQ Newbie
 
Registered: Oct 2004
Location: To the best place in the world...Greece
Distribution: Debian, SuSE, CentOS, Solaris, Ubuntu
Posts: 25

Rep: Reputation: 15
PhillipHuang, are you saying to add POSIXaccount insteed of loginShell? If yes, I did that and slapd daemon does not start.

My home dir is mounted via nfs so /etc/auto.master and timeouts wont work either.

Server is running CentOS 4.4 if that matters.

We have many Debian boxes that work as ldap clients with no problem at all. We have the problem only with CentOS boxes (the only one) and X authentication.

Thanks a lot
 
  


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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
slack 10.2 - root - unable login arczir Slackware 7 10-14-2005 08:09 PM
Other users can't login except root octino Linux - Newbie 19 11-07-2004 10:52 PM
Unable to login using non-root account saxophobe Linux - Security 4 06-28-2004 08:58 AM
Users other than root cannot login? cyberswami Linux - Newbie 8 07-07-2003 08:21 PM


All times are GMT -5. The time now is 03:02 AM.

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
Open Source Consulting | Domain Registration