rohitsz Posted February 22, 2007 Report Share Posted February 22, 2007 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. Quote Link to comment Share on other sites More sharing options...
arctic Posted February 22, 2007 Report Share Posted February 22, 2007 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. Quote Link to comment Share on other sites More sharing options...
neddie Posted February 22, 2007 Report Share Posted February 22, 2007 Does the user even exist any more after the complete reinstall? Have you checked the file /etc/passwd to see if entries exist for the previous user(s)? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted February 22, 2007 Report Share Posted February 22, 2007 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. Quote Link to comment Share on other sites More sharing options...
rohitsz Posted February 23, 2007 Author Report Share Posted February 23, 2007 (edited) 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 directoryxterm: 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 February 24, 2007 by rohitsz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.