Reply to post: Re: Once upon a time in Brighton...

Remember the Dutch kid who stuck his finger in a dam to save the village? Here's the IT equivalent

bpfh
Coffee/keyboard

Re: Once upon a time in Brighton...

Done that with a mass box hoster. Did :q! while vim'ing /etc/passwd before going to command mode. Nothing happened, so esc - :x! (as I had not made any changes - nothing to save anyway innit.......) and vim quit. Then I did some other changes, logged out, forgot to restart apache, logged back in and..... could not log back in as root.

Luckily, with these mass hosters, a rescue distribution could be netbooted, mount the FS, check the logs, complaints about /etc/password / root account not being readable. Cat the file, and there at the top line 1, root's entry and at column 1 was a lovely ":q!"

Now, rule is always set up a backup admin account in group 0 so I can login and su into so I can correct "someone's" fat fingering....

Icon -> Always press it before entering commands in vim :p

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon