-   Debian (
-   -   root can log in, but not users (

walterbyrd 02-05-2006 01:42 PM

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.

m_yates 02-05-2006 03:08 PM

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:

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.

lestoil 02-05-2006 05:13 PM

Did you run adduser or useradd to setup user? adduser is most common.

walterbyrd 02-05-2006 08:11 PM

I should have mentioned that I am running IceWM. I added the user with useradd. I am fairly sure that I'm using - not xfree86.

Why is gdm handy to have? What exactly is the function of gdm, kdm, or xdm?

HappyTux 02-05-2006 08:41 PM


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.

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.

walterbyrd 02-06-2006 08:35 AM

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.

walterbyrd 02-07-2006 04:17 PM

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.

walterbyrd 02-08-2006 07:17 AM

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.

All times are GMT -5. The time now is 05:42 AM.