LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 02-05-2006, 12:42 PM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 565

Rep: Reputation: 30
root can log in, but not users


Running debian etch.

I can log in as root with no problem.

When I try to log in as a user, that debian login box just keeps coming up.

If I log in as root, then su to a user account, I can log in to that user account; but as soon as I try to run anything, I get:

$ emelfm
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0

I have tried uninstalling, and re-installing the user account; that didn't work.

Also, how do I get rid of that debian login box? I want to log in from the CLI. I like to see what's going on.
 
Old 02-05-2006, 02:08 PM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
The log in box you are talking about is the desktop manager, either gdm, kdm, or xdm. The default is gdm. You can remove it with:
Code:
apt-get remove gdm
But I wouldn't recommend that because it is quite handy to have.

If you are having a problem (like you are now), you can still log in from the command line to see what is going on. When the log in box opens up, press ctrl+alt+F1 to get a command prompt. From this command prompt, log in as root and issue the command "killall gdm", then exit. Now log in as a user (emelfm?) and type "startx". See what errors you have to help you figure out why x isn't starting for a regular user.
 
Old 02-05-2006, 04:13 PM   #3
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Did you run adduser or useradd to setup user? adduser is most common.
 
Old 02-05-2006, 07:11 PM   #4
walterbyrd
Member
 
Registered: Apr 2004
Posts: 565

Original Poster
Rep: Reputation: 30
I should have mentioned that I am running IceWM. I added the user with useradd. I am fairly sure that I'm using x.org - not xfree86.

Why is gdm handy to have? What exactly is the function of gdm, kdm, or xdm?
 
Old 02-05-2006, 07:41 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by walterbyrd
I should have mentioned that I am running IceWM. I added the user with useradd.
That could be your problem right there useradd just does that only adds a user to the system it copies no setup files to the users /home, try adduser to create the user.
Quote:
Why is gdm handy to have? What exactly is the function of gdm, kdm, or xdm?
It is handy if you like to boot graphically otherwise it is useless to you if you want command line. They are used to start a Desktop environment from X which is what you are really running if the manager was not there then all you would see is the grey backround with an X for the cursor.
 
Old 02-06-2006, 07:35 AM   #6
walterbyrd
Member
 
Registered: Apr 2004
Posts: 565

Original Poster
Rep: Reputation: 30
I guess I use xdm, not gdm.

At the login, I was able to ctrl-alt-f1, and go to root, then log in as a user, killall xpm, and do a startx. But, I was able to log in as root though the gui, anyway. In any case, this does not really fix the problem, I don't want to have to do this everytime a regular user logs in. I would rather just log into the CLI, if that will even work.

I can do a userdel, then adduser; if the user is already there. I can not do an adduser for a new user, I get this error:

adduser: `groupdel username' returned error code 6. Aborting.
 
Old 02-07-2006, 03:17 PM   #7
walterbyrd
Member
 
Registered: Apr 2004
Posts: 565

Original Poster
Rep: Reputation: 30
Doing a "apt-get remove xdm" removed my x-window-system. I was able to do an "apt-get install x-window-system" and get my gui back, but I right back where I started regarding users not being able to log-in.
 
Old 02-08-2006, 06:17 AM   #8
walterbyrd
Member
 
Registered: Apr 2004
Posts: 565

Original Poster
Rep: Reputation: 30
Here is how I finally deleted xdm, without deleting x-window:

Switch to console (Ctrl-Alt-F1), log in, "su" to root and run "update-rc.d -f xdm remove". Then reboot.

After rebooting and logging in, you can do:

echo "exec icewm-session" > ~/.xinitrc

and then you can do "startx" to start icewm.
 
  


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
newbie > root can log in to a gui, users suddenly can't Influx Slackware 18 10-09-2005 10:09 AM
Users can't log in unless part of the root group jeffreybluml Linux - Newbie 3 12-02-2004 07:24 PM
X only loads for root user; Hangs when other users log in (Fedora Core 3) stupidloser Linux - General 1 11-29-2004 05:13 AM
non-root users can't log in (RH9) skullmunky Linux - Security 1 11-17-2004 11:41 AM
Non-root users can log in to SSH but not read Home Directory? Bizanshee Linux - Software 1 09-18-2002 07:01 PM


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