LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2005, 04:51 PM   #1
micker
LQ Newbie
 
Registered: Jan 2005
Location: Bury, Lancashire, England
Distribution: Ubuntu 6.06
Posts: 27

Rep: Reputation: 15
can only log in as root


The other day I decided to do a re-install on my mandrake 10.1ce box. I had /home on a separate partition and so I thought I could do a re-install and keep all my user data safe. When I re-installed, sure enough /home was there safe and sound but I could only log on a root. If I tried to log in as my normal user it came back saying that I didn't have write access to my home directory and so KDE couldn't start. I've since backed up my home directory onto a CD and then done another reinstall, this time wiping /home clean and copied everything back from the CD so I am no longer stuck but if anyone can tell me why I wouldn't have write access to my own home directory then at least I won't get stuck next time.

Cheers,

Mick.
 
Old 01-03-2005, 04:58 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You created new users with different ID. You can fix it in your /etc/passwd file.
 
Old 01-03-2005, 05:08 PM   #3
micker
LQ Newbie
 
Registered: Jan 2005
Location: Bury, Lancashire, England
Distribution: Ubuntu 6.06
Posts: 27

Original Poster
Rep: Reputation: 15
Hi Emerson,
Thanks for the quick reply. I used the same username and password when I re-installed. If it was a problem in /etc/passwd how would I correct it?

Cheers,

Mick.
 
Old 01-03-2005, 05:51 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Every user in system has an ID, when you create a new user it has assigned uid automatically. For Debian system it starts with 1000 for first user, 1001 for next, etc. Permissions are associated with uid, not name. So may happen if you back up your home dirctory and reinstall OS and do not create users in same order as before, then uid do not match and ... you know what happens.
Assume you had user joe with uid 1002. 'adduser --uid 1002 joe' creates user with given uid for your new system. You can see uid's in /etc/passwd file.
 
Old 01-04-2005, 06:47 AM   #5
micker
LQ Newbie
 
Registered: Jan 2005
Location: Bury, Lancashire, England
Distribution: Ubuntu 6.06
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for that Emerson, that looks pretty likely. Thanks for the help.

Mick.
 
  


Reply



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
Cannot log into root! Nox_hand Linux - Security 3 09-21-2005 01:01 AM
How do I log in as the root? nighthawk15 Linux - Newbie 7 03-01-2005 05:21 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 04:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-04-2004 11:01 PM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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