Page 1 of 1

root and X session [solved]

Posted: Wed Oct 19, 2016 2:30 pm
by mt12345
Er... how to disable X session autostart when logging as root?
(I run SWIKEE and BREAK but this is edition-independent question).

Re: root and X session

Posted: Wed Oct 19, 2016 2:46 pm
by machinebacon
Do you say you log in as "root" and it automatically logs in to X? Check the /root/.bash_profile file, you can comment the line that says "startx" (if it's there)

Re: root and X session

Posted: Wed Oct 19, 2016 4:45 pm
by mt12345
It's not there

Re: root and X session

Posted: Wed Oct 19, 2016 5:08 pm
by machinebacon
switch to TTY2 and log in as root?

Re: root and X session

Posted: Wed Oct 19, 2016 7:16 pm
by mt12345
Solved.

I found 'startx' in
/etc/profile.d/zz-live-config_xinit.sh
so I removed the file and added 'exec startx' to user's .bash_profile

Re: root and X session

Posted: Thu Oct 20, 2016 3:59 am
by machinebacon
^ this file is added automatically by https://packages.debian.org/sid/live-config. Every new upgrade of live-config creates it again. I recommend removing live-config and live-boot if you don't plan to remaster your installation.

you're welcome.