|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I don't know how it is about in 10.3 but you should have a passwd.old in there or passwd.Yast2save. copy that and rename to passwd. After that you'd need to add your user with YaST again as it won't probably be there.
__________________
How does a linux geek make love?? - unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep; |
|
|||
|
> I accidentally deleted the /etc/passwd file from my OpenSuse10.3.
> What can I do to get back in my OS? there may be another way, but the only way i know is to restore it from your latest backup tape/image.. -- brassy |
|
||||
|
I have both in 10.3. So look inside wich one comes nearest (and look at their dates how old they are) to what you think your original was (in fact my passwd.old is exactly the same as passwd, so maybe you do not need to change something).
__________________
Henk van Velden |
|
||||
|
And I have a vague idea that you might be interested in reading: SDB:Login as root - openSUSE
__________________
Henk van Velden |
|
||||
|
Well i compared mine passwd.old and passwd and i didn't have the actual user, i guess it is made every time there are any changes. So if you only added one user then in the passwd.old you won't have that user in it BUT if you made some other changes then you should have yourself in there
![]() P.S. So after copying and renaming look into that file, if your actual user doesn't exist then recreate him with YaST.Simple
__________________
How does a linux geek make love?? - unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep; |
|
||||
|
But I don't know how can I log in to my system because at login window after typing my user and password an error message is displayed "Login failed". How can I bypass the login.
thanks! |
|
||||
|
Use any live CD to copy passwd.old and rename it to passwd. DVD will also suffice, just go to other terminals.
__________________
How does a linux geek make love?? - unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep; |
|
||||
|
Either by booting into single user mode (enter s in the options field during boot), or use a cd/DVD in rescue mode.
Edit: orr a live CD as BenderBendingRodriguez says (we are fighting being first to answer you, see what you did to us ).When boot is finished and you are loged in in the console after the boot (from live CD or whatever), mount the roor partition of your normal system somewhere, then you go there with cd and see what you have in etc/.
__________________
Henk van Velden |
|
||||
|
I tried to boot with s option but after switching to runlevel s I got some errors about services that could not start in runlevel s and also a message sulogin: cannot open password database.
I'll try with an liveCD but this way (single user mod) it could be easier for me becouse I don't have a liveCD right now. Thank you very much ... both of you! Quote:
|
![]() |
|
| Bookmarks |
| Tags |
| /etc/passwd |
| Thread Tools | |
| Display Modes | |
|
|