LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-11-2007, 11:10 PM   #1
rengo.Java
Member
 
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
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!!!
 
Old 12-12-2007, 01:16 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 12-13-2007, 05:56 AM   #3
rengo.Java
Member
 
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48

Original Poster
Rep: Reputation: 15
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!
 
Old 12-13-2007, 10:34 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 12-14-2007, 05:42 AM   #5
rengo.Java
Member
 
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48

Original Poster
Rep: Reputation: 15
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!!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba User login problem sijo Linux - Server 1 12-10-2007 08:10 AM
Problem on login as user satimis Linux - Distributions 2 03-29-2007 04:01 AM
gentoo user login problem matrixon Linux - Software 1 06-24-2005 05:57 PM
problem with internet when using user login adamz Linux - Newbie 1 07-06-2004 04:11 PM
Mandrake 9.2 user login problem.... computer_kid101 Linux - Newbie 2 01-26-2004 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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