[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Forcing RW on boot
- Subject: [ale] Forcing RW on boot
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Tue, 30 Mar 2010 14:59:52 -0400
- In-reply-to: <[email protected]>
- References: <1269968234.21416.42.camel@cfowler-desktop> <[email protected]>
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.