Boot as 'root' instead of 'dsl'


Forum: Other Help Topics
Topic: Boot as 'root' instead of 'dsl'
started by: Gregus

Posted by Gregus on Jan. 18 2005,14:32
I am using a remastered version of the LiveCD running on a CompactFlash drive setup as a HD.  I need the system to boot and login as root (instead of dsl) before running X - how can I do this?

Greg

Posted by mikshaw on Jan. 18 2005,18:55
use the boot option 'dsl 2'
Posted by henk1955 on Jan. 18 2005,20:19
this is the "mainloop" of dsl
/.bash_profile
Code Sample
#!/bin/bash
RUNLEVEL=`runlevel|cut -f2 -d' '`
if [ $RUNLEVEL -eq 5 ]
then
  export HOME=/home/dsl
  cd $HOME
  while [ 1 ]; do
     su - dsl
  done
fi

this is /home/dsl/.bash_profile
Code Sample
#!/bin/bash
export IRCNICK=DSL
SSH=`env | grep SSH_CONNECTION`
if [ -z "$SSH" ]; then startx; fi


i think if you change: su - dsl
to: startx
you run X as root user

Posted by mikshaw on Jan. 18 2005,23:00
hey....that's some good info.  Thanks!
Posted by Gregus on Jan. 19 2005,22:15
Thanks again henk1955.. changed su - dsl to startx and it does just what I wanted..  perfect :)

Greg

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.