On Wednesday 24 May 2006 21:32, Sergey Mkrtchyan wrote:
Mark H. Harris wrote:
Yes... pay attention and don't delete by mistake next time... ;-)
I wrote "for sure it is immpossible that I have removed it by mistake", means I really really didn't write something like
bash# rm /etc/inittab
Honestly, ... oh never mind. ... wait, wait, I can't stand it... let's see... "I was just playing with the init scripts..."
Agreed...not correct formulation(and much about fun, ok), but I wasn't playing with it's default files. As in other thread you can see, Leendert helped me to execute a script each time at booting, which is written on the basis of skeleton, and it is nothing else, but script which simply writes some info in .log file each time at booting.
Well, the 'stick of di-no-mite' is merely another name for 'being root'. I was playing with di-no-mite a few days ago, and trashed /etc and /bin on my dns/dhcp/fun server. Result: I could not even become root. Look, mam! No hands! Oh, well, I did have plans to upgrade to 10.1, so that was a nice time do do it. ;) Moral: everybody can make a mistake as root. Better avoid being root. :P Playing with initscripts: how much can you do without being root? 'FOO start' and 'FOO stop' probably work as a normal user (at least my example would). No need to do insserv to test the workings of that script. Need to be root? Use 'su FOO start', and type the password for root. That makes you think twice, hopefully. Or not. ;P (Can't remember putting '> /etc/inittab' or so in my example...) What does 'grep inittab /root/.bash_history' say? Cheers, Leen