Jump to content

Reinstall made /home/<olduser> as unrecognised


rohitsz
 Share

Recommended Posts

Greetings there,

 

I had a hard disk snag that made mandriva 2007.0 crash!

So i reinstalled 2007.0 and rewrote / and /usr the /home partition was left untouched.

So post install, when i try to login using the old existing users on /home/<username>, i get a login fail screen.

 

The /home directory is exixsting there, is there a way to map the old users and their sruff to the new install somehow? :unsure:

 

thanks,

rohit.

Link to comment
Share on other sites

Press ctrl+alt+F1 in order to get to a command line. Once there, log in as root. Then type

 

chown -R username:username /home/username*

 

*=replace "username" with your actual username, e.g. "bob".

 

Once you have done that, log out, press ctrl+alt+F7 and try to log in again as normal user.

Link to comment
Share on other sites

If the user doesn't exist, add with:

 

useradd -M username

 

it won't create the home directory, but then you can reset the privileges like arctic mentioned. If you're sure you've got it:

 

cat /etc/passwd | grep username

 

and if it comes back with no results, then that user didn't get added during install.

Link to comment
Share on other sites

Greetings there,

Thanks to all for helping me in getting back all my previous usenames! :-)

 

But there is jus one problem, my most used login is facing the following problem when i try to log into it..

 

xterm: Can't execvp /usr/X11R6/bin/luit: No such file or directory

xterm: cannot support your locale

[username@localhost]$

 

I am left with no choice to do a CONTROL+D! :mellow:

 

So what should i do further...

 

<edit>

So when i got that on a console, i did

[username@localhost]$startkde &

 

After that when i try to close the console, kde also closes and i am taken back to the login screen.

</edit>

 

 

thanks,

rohit.

Edited by rohitsz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...