1834935 Members
2262 Online
110071 Solutions
New Discussion

Worst thing!

 
Rajkumar Basuveswaran
Occasional Advisor

Worst thing!

Wanted to test a tape drive read/write test. Logged in to the NIS master server, I entered this command,

tar cvf /etc/passwd /dev/rmt/0m.

Just before that, I was working in a DOS command window,
copy

And I got so many problem tickets that day.
Phone calls too!!!

Raj
When all else fails read the instructions
5 REPLIES 5
Bill Douglass
Esteemed Contributor

Re: Worst thing!

Bummer, man. Sorry 'bout that.

On the bright side, at least you archived your tape drive :-)
Helen French
Honored Contributor

Re: Worst thing!

Bad luck! If you have a backup copy, you can restore /etc/passwd from the last set. Always, give device file names after "f" option with tar. Also, for testing never use any system specific files. Create your own folder in /home or /tmp and create your own files. This way you will never screw the system. Also, for any reason if you intent to change a system file or to play with it, make a copy first.

Just some thoughts ..
Life is a promise, fulfill it!
Caesar_3
Esteemed Contributor

Re: Worst thing!

Hello!

Bad luck, if you have backup so no problem
if not do you have NIS slave server than
take the data from him
Otherwise you will need to do all from begin

Caesar
Michael Steele_2
Honored Contributor

Re: Worst thing!

Ricardo Bassoi
Regular Advisor

Re: Worst thing!

Hi,

Next time try:

tar -tvf (instead cvf)

and test the read/write with a dumb file:

ls -l > test_file


Now, in your case, only a backup can help you, or if the /etc/passwd wan??t so big you can created the users again from the scratch and after send a email to all in order to change the password.

Regards,

Ricardo Bassoi
If you never try, never will work