To enable root access:
Get into netinfo, its located at /Applications/Utilities/netinfo manager.app
under the domain menu, select 'Security' then 'Authenticate'.
Enter your credentials.
Ok, go to the 'Domain' menu again, select 'Security' then select 'Enable root user'.
Now, go to the 'Domain' menu, select 'Security' and select 'Change root password.'
There ya go, you now have enabled the root user with a password.
To become root in the terminal, type su (enter) followed by your root password.
Or, logged in as the administrator, type 'sudo (command)' where command is either -s (shell) or something like rm /bin/ladin. Enter your password, and you have done the command as root.
Now I don't quite understand why you need to remove AppleUSBMouse.kext, but if you use one of the above root-aquisition techniques, you can certainly remove it.
And the same for loginwindow, you shouldn't have to mess with that. But if you really feel the need... (I understand, sometimes I kill the strangest tasks for no real reason ;-)
get into the terminal
expand the terminal's window horizontally so its a bit larger. Make it atleast long enough for:
kilowatt 281 0.0 0.6 68960 4240 ?? Ss 0:02.29 /System/Library/CoreServices/login
to fit on one line.
Next, type this:
ps aux | grep login
that '|' thingy is called a pipe, you can make it by pressing shift \ (forward slash, just look on the keyboard, you'll see it).
Hopefully, something like this shows up:
[kilowatt@mach4 Named]$ ps aux | grep login
kilowatt 281 0.0 0.6 68960 4240 ?? Ss 0:02.29 /System/Library/CoreServices/loginwindow.app/loginwindow console
kilowatt 324 0.0 0.0 3136 80 std R+ 0:00.00 grep login
[kilowatt@mach4 Named]$
to kill the loginwindow, type:
kill 281
if it doesn't really die, use kill -9 281
281 happens to be the pid (program id) of my login window. Use whatever is appropriate for your ps aux output.
Now, why that works:
ps aux displays every process. ps by its self just displays the processes for that shell, usually something like tcsh and ps ;-).
The pipe directs the output of ps into the program called grep.
Not grep login searches whatever you give it for the string 'login'. There is much more that can be done with grep, like:
cat /etc/services | grep pop
to search /etc/services for the string pop.
kill does just that - it kills whatever you tell it to.
Say the dock has some icon bouncing up and down as if its loading, but it never finished loading, and the darn icon just will not stop trying to load or whatever.
find the pid of the dock (ps aux | grep Dock).
type:
kill -HUP 334
or whatever the pid is for the dock. -HUP restarts the process, and in this case, kills the dock and loads it back up.
There may be easer ways to do these things, but I think its important to learn ways like this first.
hope this helps, please post if you have anymore questions.