Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 09-02-2009, 01:12 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
Arrow Login problem


I have problem when new user logs in.There is one user Raj1 who is the superuser (1st user a/c created after installation). Another user Raj2 is created from this account.But when Raj2 logs in "No directory, logging in with HOME=/" error comes in terminal

When he tries to login through GUI..similar error message comes & when I click OK screen goes blank.

Can any one let me know why is this happening??

I used this command

sudo useradd Raj2 --> user created

let me know how to set password for this user??

How to set the root password in Ubuntu??

Old 09-02-2009, 01:37 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

You issued the useradd command without the -d option to create the home directory. Read the man page for useradd, it tells you all you need to know in order to create a user the 'correct' way.

Since there is no home directory the system has no place to save/keep xconfig files, hence no GUI.

You set the password for a user with
passwd <username>
Setting root password is not advised by the Ubuntu community but if you know what you're doing.... (tip:

Kind regards,



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
SSH Problem - Can't login using Hostname, can login using ip address jqweezy Linux - Networking 7 01-26-2009 03:21 PM
X Login problem shan_nathan Linux - Desktop 3 06-30-2007 11:52 PM
Login problem Artik Debian 2 06-19-2005 06:27 AM
Login problem cykoburn Linux - Newbie 5 11-29-2004 10:02 PM
Login Problem can anybody help me? mnatu Linux - General 2 03-06-2004 04:59 PM

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration