I would like to start MATE only after root has logged in fully.

Post your general questions or comments about GhostBSD here!
Post Reply
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

I would like to start MATE only after root has logged in fully.

Post by UnixLinuxB »

As the title says.
I've spent several hours on search engines with no clue.
for the time being..
....
>>> login as root
>>> logout login as user
>>> start mate desktop
.... or if not possible
>>> login as root
>>> start mate desktop
>>> mate desktop asks for user password.
..........
Which file or file line should be changed/removed/commented?
....
User avatar
slughorn
Posts: 135
Joined: Mon Oct 02, 2017 2:55 pm

Re: I would like to start MATE only after root has logged in fully.

Post by slughorn »

pw is your tool to create, remove, modify & display system users and groups: https://www.freebsd.org/cgi/man.cgi?que ... ease-ports
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Re: I would like to start MATE only after root has logged in fully.

Post by UnixLinuxB »

I don't want to remove the user, per se, I want to be booted into the root account and THEN log into the user
to start X. More efficient that way... I can setup firewalls, backup, etc which are problematic [ timewise]
from an X terminal.
.....
I've renamed-removed .xinitrc in the user's directory, and another like it. No change.
I've renamed xdg/autostart to xdg/AUTOSTART, made the mate desktop prettier, [ less compositining? ] , No change.
.....
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Re: I would like to start MATE only after root has logged in fully.

Post by UnixLinuxB »

bump. no setting to login in at bootup NOT into X ??? ...
cm
Posts: 6
Joined: Mon Mar 30, 2020 7:00 pm
Location: Not-Chicago, Illinois, USA

Re: I would like to start MATE only after root has logged in fully.

Post by cm »

I think you have to disable lightdm from starting up at boot time:

Code: Select all

% sudo rc-update del lightdm
. This should give you a command line UI after the system starts. Then you would login as root or the user and manually start up lightdm.

NOTE: I have not tried this myself as I'm still troubleshooting my own system, but your question seems straight-forward enough that this should meet your needs. Please let me know if I've misunderstood what you are looking to accomplish.
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Re: I would like to start MATE only after root has logged in fully.

Post by UnixLinuxB »

That answers my question perfectly if it works. Won't have time to test for a few days... thanks.
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Re: I would like to start MATE only after root has logged in fully.

Post by UnixLinuxB »

Worked. Now remains to test...
start MATE by some mate-session OR lightdm command, or setup xinitrc to do the same...
cm
Posts: 6
Joined: Mon Mar 30, 2020 7:00 pm
Location: Not-Chicago, Illinois, USA

Re: I would like to start MATE only after root has logged in fully.

Post by cm »

would `startx` not work for your use case? I think startx does some environment initialization then calls xinit. And since you are already logged in, there would not be any password prompted for, you would be running as the calling user, whether root or your regular user account.
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Re: I would like to start MATE only after root has logged in fully.

Post by UnixLinuxB »

Probably, but am short of time to setup an xinitrc. I found 'lightdm' after logging in as root, gets to the MATE desktop as usual, so problem fully solved.
Post Reply