Erik --
You can't really write something that'll log in a user like that, since the script itself wouldn't be running...
Enabling root temporarily -- just to get things installed and enabled -- shouldn't be terribly dangerous, should you feel that you need to be logged out all the time.
But if you leave yourself logged in with, say, the screen locked, you'd be in a better place...
__________________
--Dave Nanian
|