You are not logged in.
Pages: 1
When Installing q4os it has an option to create a separate root password from the original account setup password. When I created the separate root password and started running q4os it continued to use the account password for installing apps or sudo command.
Is there a fault with the create a separate root password on installation?
Offline
If you want sudo to ask for roots password, run visudo and change
%sudo ALL=(ALL:ALL) ALL
to
%sudo ALL=(ALL:ALL) ALL Defaults targetpw
It will now always ask for the target password instead of the user password.
Q4OS Trinity machine - Crelander E160. Intel Celeron N5105, 16GB LPDDR4, 512GB m.2 SATA SSD, Intel UHD graphics, Intel 7265 Wifi 5 + BT 4.x, 16" 3072x1920 LCD.
Offline
That means it is an installation omission on the installation ?
Offline
That means it is an installation omission on the installation ?
No, sudo is configured in the default way that it is used. The targetpw is an optional configuration that makes the systme more like using su -c instead of sudo, most people don't want that, so that's not the default.
Last edited by tlmiller76 (2022-06-30 04:51)
Q4OS Trinity machine - Crelander E160. Intel Celeron N5105, 16GB LPDDR4, 512GB m.2 SATA SSD, Intel UHD graphics, Intel 7265 Wifi 5 + BT 4.x, 16" 3072x1920 LCD.
Offline
The installation gives the option but it does not work. When installing, it gives an option to create a user password and a root password separate. When I tried creating a separate root password it was not used. Isn't this a fault with the installation ?
Offline
Worked fine on my install that I did on Tuesday to take the root password. Which image did you install from?
So, what are you trying to accomplish? Do you want sudo to ask for root password, or do you want to apply a root password? Those are 2 massively different things.
Last edited by tlmiller76 (2022-07-01 02:50)
Q4OS Trinity machine - Crelander E160. Intel Celeron N5105, 16GB LPDDR4, 512GB m.2 SATA SSD, Intel UHD graphics, Intel 7265 Wifi 5 + BT 4.x, 16" 3072x1920 LCD.
Offline
The installation gives the option but it does not work. When installing, it gives an option to create a user password and a root password separate. When I tried creating a separate root password it was not used. Isn't this a fault with the installation ?
If you enabled the root account, it will only be used when specifically requested.
sudo will still work with your user password.
Alternatively you can use su which will prompt for the root password. You will then see the bash prompt change to root.
The only time I have found I needed to enable the root account is for installing mysql - for some reason it just won't install properly without. Mind you that was for use with local Wordpress developement tools so that's another story.
Offline
I understand. The root password is for direct root access not for installing apps or sudo apt-get install xxx commands.
Thanks
Offline
Pages: 1