Page 1 of 1

Porteus 3.2 rc root mode dirty tricks

Posted: 24 Sep 2016, 14:21
by francois
As brokenman has enough work with normal user mode, lets share our tricks about porteus 3.2 rc root mode in this thread.

root mode after logout.
Once booted in guest mode, to get in root mode environment:

Code: Select all

su
toor
init 3
root
toor
startx
root mode with autoexec?
http://old.slax.org/documentation_boot_cheatcodes.php

other tricks to come. :twisted:

Re: Porteus 3.2 rc root mode tricks

Posted: 25 Sep 2016, 00:11
by Rava
I don't want X to be started as root, but I want the usual startup (not startx by default, I want some root virtual terminals, and one with my default user that starts x)

To do so I have to edit the /etc/initab :

Code: Select all

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
Cave! Since it is init it won't work by just changing the runlevel, you have to restart the machine for it to work...

(Also I add tty8-12 like so:)
/etc/inittab:c8:12345:respawn:/sbin/agetty 38400 tty8 linux
(that adds tty8)

Re: Porteus 3.2 rc root mode tricks

Posted: 25 Sep 2016, 00:18
by francois
Hello rava.
I understand that you do not want to startx root mode. But I do. :wink:
How would you do it?

Thanks.

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 25 Sep 2016, 00:40
by Rava
You mean, how would I startx as root?

Same as now, edit the /etc/inittab, but login as root in a virtual terminal and then startx as root.

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 25 Sep 2016, 11:49
by francois
I mean automatically into root mode at bootup. :)

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 25 Sep 2016, 12:35
by Rava
francois wrote:I mean automatically into root mode at bootup. :)
What do you mean by that?

1) Log into a virtual terminal by itself without the need to log in
or
2) startx as root...

???

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 25 Sep 2016, 13:18
by Bogomips
Think it be to enter GUI as Superuser.. :roll:

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 25 Sep 2016, 13:28
by Rava
Bogomips wrote:Think it be to enter GUI as Superuser.. :roll:
I think my question was unclear. Let me rephrase it:

1) Log into a virtual terminal by itself without the need to log in, and then do a manual startx.
or
2) Start X as root by default (just as Porteus starts X, but as non root user)


Why do you ask me how I would manage the 2nd part? When you ask Port to start it as root, and do not change the way it starts, it will start X as root by itself. Where is the issue in that?

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 26 Sep 2016, 08:44
by ncmprhnsbl
possibly, what isn't clear is that this topic pertains to 3.2 RC5, specificly KDE (maybe cinnamon, mate?)
where the cheatcode login=root doesnt work
and when logging out of guest to the login screen(sddm) there is no option to log in to root(X)..
note: xfce 3.2 doesnt have this issue and login=root works as normal

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 26 Sep 2016, 21:40
by francois
In fact, I wanted to boot in X root mode. It seems that cheatcode login=root does not work under rc5. :)

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 28 Sep 2016, 05:20
by ncmprhnsbl
heres a way to get root user to show on sddm(login screen)
1.go to System Settings>Startup and Shutdown>Login Screen(sddm)>Advanced tab
2.set "Minimum UID" to 0 (root users' UID is 0 (found by "id -u root"))
3.will ask for authentication
4. if you now logout, you can choose root user (from a bunch of other "rubbish" accounts(any process with a UID between 0 and 1000) )
or simply edit /etc/sddm.conf

EDIT it may possible to remove the extra "users" with adding "HideUser=" option to sddm.conf
https://forum.kde.org/viewtopic.php?f=2 ... 02#p328070

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 28 Sep 2016, 15:45
by brokenman
heres a way to get root user to show on sddm(login screen)
Note at the link posted the maintainer of sddm says that this will make the root user show, but you won't be able to login as root to an X session. There are additional checks to make sure you can't.

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 28 Sep 2016, 21:05
by ncmprhnsbl
brokenman wrote: Note at the link posted the maintainer of sddm says that this will make the root user show, but you won't be able to login as root to an X session. There are additional checks to make sure you can't.
yeah, i saw that.. but.. doesnt seem to matter with porteus... he doesnt specify but i wonder if these security checks are logind(systemd) related....

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 29 Sep 2016, 02:28
by ncmprhnsbl
furthermore, just tested this with login=root cheatcode and works np

Re: Porteus 3.2 rc root mode dirty tricks

Posted: 29 Sep 2016, 15:06
by francois
Seems that I was lured by the login manager. :shock:

Time setting:
viewtopic.php?f=48&t=5633
1 - set your location cheatcode (timezone)
2 - sync clock with ntp

Code: Select all

root@porteus:/home/guest# ntpdate 0.us.pool.ntp.org
3 - Set the hardware clock from the current system time

Code: Select all

root@porteus:/home/guest# hwclock -w
And
viewtopic.php?f=140&t=6203

*** to be followed