[ale] Forcing RW on boot

Chris Fowler cfowler at outpostsentinel.com
Tue Mar 30 14:59:52 EDT 2010


On Tue, 2010-03-30 at 12:47 -0500, Dustin Puryear wrote:
> Is it okay if you just remount as rw?
> 
> something-wrong-with-boot [enter root password]
> password:
> # mount -o remount,rw /

Another thing that really ticked me off was the reboot command.

reboot -f does not work.  To get the system to boot I had to add
init=/bin/sh to the kernel command line.  I'm now in but the root is
still ro even though I specified 'rw'.  

Apparently reboot does some kind of checking on security when executed.
It will never issue the system call if it can't
access /etc/security/console.apps/reboot.

int main(void) { reboot(0x12345567); }

gcc -o restart ./restart.c

Looks like I'll need to add that to ever server just in case I need it!

The only way I could have rebooted this server was to have a user do it
at the site.






More information about the Ale mailing list