Porteus 3.2 rc root mode dirty tricks

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Porteus 3.2 rc root mode dirty tricks

Post#1 by francois » 24 Sep 2016, 14:21

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:
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: Porteus 3.2 rc root mode tricks

Post#2 by Rava » 25 Sep 2016, 00:11

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)
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Porteus 3.2 rc root mode tricks

Post#3 by francois » 25 Sep 2016, 00:18

Hello rava.
I understand that you do not want to startx root mode. But I do. :wink:
How would you do it?

Thanks.
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: Porteus 3.2 rc root mode dirty tricks

Post#4 by Rava » 25 Sep 2016, 00:40

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.
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Porteus 3.2 rc root mode dirty tricks

Post#5 by francois » 25 Sep 2016, 11:49

I mean automatically into root mode at bootup. :)
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: Porteus 3.2 rc root mode dirty tricks

Post#6 by Rava » 25 Sep 2016, 12:35

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...

???
Cheers!
Yours Rava

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Porteus 3.2 rc root mode dirty tricks

Post#7 by Bogomips » 25 Sep 2016, 13:18

Think it be to enter GUI as Superuser.. :roll:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: Porteus 3.2 rc root mode dirty tricks

Post#8 by Rava » 25 Sep 2016, 13:28

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?
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Porteus 3.2 rc root mode dirty tricks

Post#9 by ncmprhnsbl » 26 Sep 2016, 08:44

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Porteus 3.2 rc root mode dirty tricks

Post#10 by francois » 26 Sep 2016, 21:40

In fact, I wanted to boot in X root mode. It seems that cheatcode login=root does not work under rc5. :)
Prendre son temps, profiter de celui qui passe.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Porteus 3.2 rc root mode dirty tricks

Post#11 by ncmprhnsbl » 28 Sep 2016, 05:20

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Porteus 3.2 rc root mode dirty tricks

Post#12 by brokenman » 28 Sep 2016, 15:45

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Porteus 3.2 rc root mode dirty tricks

Post#13 by ncmprhnsbl » 28 Sep 2016, 21:05

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....
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Porteus 3.2 rc root mode dirty tricks

Post#14 by ncmprhnsbl » 29 Sep 2016, 02:28

furthermore, just tested this with login=root cheatcode and works np
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Porteus 3.2 rc root mode dirty tricks

Post#15 by francois » 29 Sep 2016, 15:06

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
Prendre son temps, profiter de celui qui passe.

Post Reply