openSUSE Forums > Install/Boot/Login » /etc/passwd deleted

Go Back   openSUSE Forums > Install/Boot/Login
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)

Reply
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 08-Jul-2009, 09:23
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: /etc/passwd deleted

You're welcome and next time watch what you're deleting

You can't imagine how many files i lost when i started using linux

So many photos and music lost ehhh those were the days
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #12 (permalink)  
Old 08-Jul-2009, 09:31
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,913
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: /etc/passwd deleted

Hm, I would forget those about services that can not be started. You do not really need them IMHO. But it is a pitty that it still needs the passwd file.

After that last message, you are sure you ar not loged in? Type the return key a few times.

How did you install? As long as you have any bootable CD/DVD that can run on itself (live CD, but also install ones with rescue mode, also from another openSUSE version or even from another Linux distribution) that would be OK.

BTW there is a second important file that holds information about users and login: /etc/shadow. Users have their passwords there and in general it has entries for every user in the same sequence as /etc/passwd. So when you restore a password.old check in /etc/shadow (especialy at the end) if there are more/less uers there. There is also shadow.old file which must correspond with passwd.old. So you could mv both to be the actual ones (but make a copy of shdow first).
__________________
Henk van Velden
Reply With Quote
  #13 (permalink)  
Old 09-Jul-2009, 03:36
ionpetrache's Avatar
Student Penguin
 
Join Date: Jun 2009
Location: Timisoara, Romania
Posts: 71
ionpetrache hasn't been rated much yet
Default Re: /etc/passwd deleted

Quote:
Originally Posted by hcvv View Post
Hm, I would forget those about services that can not be started. You do not really need them IMHO. But it is a pitty that it still needs the passwd file.

After that last message, you are sure you ar not loged in? Type the return key a few times.

How did you install? As long as you have any bootable CD/DVD that can run on itself (live CD, but also install ones with rescue mode, also from another openSUSE version or even from another Linux distribution) that would be OK.

BTW there is a second important file that holds information about users and login: /etc/shadow. Users have their passwords there and in general it has entries for every user in the same sequence as /etc/passwd. So when you restore a password.old check in /etc/shadow (especialy at the end) if there are more/less uers there. There is also shadow.old file which must correspond with passwd.old. So you could mv both to be the actual ones (but make a copy of shdow first).
I'll try a liveCD! I tried to boot in single user mode because I didn't have a liveCD and I installed OpenSuse from a DVD but ... now I don't have a dvdrom unit I only have a cdrom unit...it's a little bit complicated. Anyway thanks a lot for helping me.
Reply With Quote
Reply
Page 2 of 2 1 2

Bookmarks

Tags
/etc/passwd


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2