LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   new user login problem in X (https://www.linuxquestions.org/questions/linux-general-1/new-user-login-problem-in-x-606190/)

rengo.Java 12-11-2007 11:10 PM

new user login problem in X
 
Hi everybody!!

Since i install my Slackware, im using the roor user for everything.
I read that is better use an normal user.

So, i create a new user with
Code:

useradd carlitos
and i assigned a password to it with 'passwd carlitos'

all normal by now

But when i want to init a session in X (im using XFCE and XDM as login manager) with this user i cant doit.
When i put the username and password, it showme again the login frame.
(It dont tellme login incorrect, only appears the login again)

Any idea??

Thankyou!!!

reddazz 12-12-2007 01:16 AM

I am not sure if Slackwares version of useradd automatically creates a home directory for the user. Try entering
Code:

#mkdir /home/USERNAME
#chown -R USERNAME:DEFAULTGROUP /home/USERNAME

After that try logging in as the normal user and starting X to see if that resolves the problem.

rengo.Java 12-13-2007 05:56 AM

Hi reddazz and thanks for your response.

After do that the login was successfull.
But after a reboot, dont works anymore.
If i do a login with root and later with the new user, it works fine. I dont know why.
The only way to login with the user is doing a previous login with root.

Any idea?
thank you!

reddazz 12-13-2007 10:34 AM

Thats a bit weird. Boot your system into runlevel 3 and at the terminal, login as a normal user and run startx. Does that work or do you get any error messages.

rengo.Java 12-14-2007 05:42 AM

Hi, all!
It works.
I create the user with the correct options od useradd and works ok
Code:

# useradd -d /home/tuusuario -m -s /bin/bash
Thanks to all!!!


All times are GMT -5. The time now is 07:29 PM.