LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Login problem (https://www.linuxquestions.org/questions/ubuntu-63/login-problem-751973/)

sskraju 09-02-2009 12:12 AM

Login problem
 
Hi

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??

Thanks

EricTRA 09-02-2009 12:37 AM

Hello,

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
Code:

passwd <username>
Setting root password is not advised by the Ubuntu community but if you know what you're doing.... (tip: www.google.com)

Kind regards,

Eric


All times are GMT -5. The time now is 11:23 PM.