Editing inittab?

Brian S Walden wally at cbnewsl.ATT.COM
Fri Apr 7 12:29:47 AEST 1989


In article <1166 at westmark.UUCP>, dave at westmark.UUCP (Dave Levenson) writes:
> When is it ever safe to edit /etc/inittab when UNIX is running?

This works for me:
	# cp /etc/inittab /etc/Ninittab
	# ed /etc/Ninittab
	# ln /etc/inittab /etc/Oinittab
	# mv /etc/Ninittab /etc/inittab
	# init q

The only time /etc/inittab might not be found is in the mv (not too
likely), and you have a backup of your old one.

Questions about it killing children when inittab is not found:
if /etc/inittab is not found by init, nothing should happen to any of it's
children (but will spew out to the console that /etc/inittab is not found).
When /etc/inittab reappears, it will bump off all your users. (This is
true with SVR2)
-- 
Brian S Walden
AT&T Bell Labs, Whippany, NJ
att!attbl!brian.s.walden



More information about the Comp.unix.questions mailing list