I am not able to login to cockpit, localhost:9090, as root. I can login as a normal user, but that isn't acceptable. Why would I even need cockpit as a normal user?
I have a fully updated Fedora instance. It may be related somehow to plasma as at the top of the login dialog I see "Fedora Linux KDE Plasma".
I suppose there is a configuration option to allow root logins. Note that sudo is not an option I am interested in using.
Emmett
Am 09.12.2022 um 17:47 schrieb Emmett Culley via users users@lists.fedoraproject.org:
I am not able to login to cockpit, localhost:9090, as root. I can login as a normal user, but that isn't acceptable. Why would I even need cockpit as a normal user?
By default, the root login is blocked. Therefore, you login as a user and then acquire administrative privileges. (Button center at the top) you must use an user account with sudo privileges, i.e. member of group wheel.
On 12/9/22 9:19 AM, Peter Boy wrote:
Am 09.12.2022 um 17:47 schrieb Emmett Culley via users users@lists.fedoraproject.org:
I am not able to login to cockpit, localhost:9090, as root. I can login as a normal user, but that isn't acceptable. Why would I even need cockpit as a normal user?
By default, the root login is blocked. Therefore, you login as a user and then acquire administrative privileges. (Button center at the top) you must use an user account with sudo privileges, i.e. member of group wheel.
Yes, I can see root log in disabled by default. How to I enable root login?
On 12/09/2022 10:50 AM, Emmett Culley via users wrote:
Yes, I can see root log in disabled by default. How to I enable root login?
Root login is disabled because the account doesn't have a password. You can give it one during install, but it isn't required, so most people never realize that they can do that. As I prefer su to sudo, I always do. To correct that without reinstalling, run this:
sudo passwd
which will you to change (or in this case set) the root password. Once that's done you, and anybody else who knows it can become root.
On 12/9/22 11:07 AM, Joe Zeff wrote:
On 12/09/2022 10:50 AM, Emmett Culley via users wrote:
Yes, I can see root log in disabled by default. How to I enable root login?
Root login is disabled because the account doesn't have a password. You can give it one during install, but it isn't required, so most people never realize that they can do that. As I prefer su to sudo, I always do. To correct that without reinstalling, run this:
sudo passwd
which will you to change (or in this case set) the root password. Once that's done you, and anybody else who knows it can become root.
I log in to that workstation many times each day as root. I always create a root password when I create a new machine.
I am asking how do I enable root login for cockpit. I do not want to use sudo. I suppose it may be a KDE plasma issue as I see "Fedora Linux KDE Plasma" in the header of the login dialog. So how do I enable login to plasma as root?
This particular server is the first time I used Fedora instead of CentOS or some other Red Hat derivative. This server was actually first created with Fedora 28, and I just converted it to use as a gateway after upgrading to Fedora 36 (via 29, 30, 31, 32, 33, 34 and 35. Before this I rarely logged into plasma as root, but on occasion I did, and is was successful, then. What has changed and how do I fix it?
Emmett
Am 10.12.2022 um 05:40 schrieb Emmett Culley via users users@lists.fedoraproject.org:
On 12/9/22 11:07 AM, Joe Zeff wrote:
On 12/09/2022 10:50 AM, Emmett Culley via users wrote:
Yes, I can see root log in disabled by default. How to I enable root login?
Root login is disabled because the account doesn't have a password. You can give it one during install, but it isn't required, so most people never realize that they can do that. As I prefer su to sudo, I always do. To correct that without reinstalling, run this: sudo passwd which will you to change (or in this case set) the root password. Once that's done you, and anybody else who knows it can become root.
I log in to that workstation many times each day as root. I always create a root password when I create a new machine.
I am asking how do I enable root login for cockpit. I do not want to use sudo. I suppose it may be a KDE plasma issue as I see "Fedora Linux KDE Plasma" in the header of the login dialog. So how do I enable login to plasma as root?
This particular server is the first time I used Fedora instead of CentOS or some other Red Hat derivative. This server was actually first created with Fedora 28, and I just converted it to use as a gateway after upgrading to Fedora 36 (via 29, 30, 31, 32, 33, 34 and 35. Before this I rarely logged into plasma as root, but on occasion I did, and is was successful, then. What has changed and how do I fix it?
I’m puzzled. If you see „KDE Plasma“ on the login screen, you are logging in to your workstation, either directly via console or ssh. There is no Cockpit involved.
You use Cockpit usually to login to Fedora Server, and there is (usually) no Plasma involved, because Server comes without any graphical interface. To enable root login via Cockpit for your server, you must first login on the server as the current server-user with admin privileges, and use sudo passwd one time in the terminal to set a root password (on the server). After that you can permanently log in to the server directly as root. To be able to login to your server it doesn’t matter how you are logged on your workstation.
-- Peter Boy https://fedoraproject.org/wiki/User:Pboy pboy@fedoraproject.org
Timezone: CET (UTC+1) / CEST (UTC+2)
Fedora Server Edition Working Group member Fedora docs team contributor Java developer and enthusiast
On 12/10/22 2:21 AM, Peter Boy wrote:
Am 10.12.2022 um 05:40 schrieb Emmett Culley via users users@lists.fedoraproject.org:
On 12/9/22 11:07 AM, Joe Zeff wrote:
On 12/09/2022 10:50 AM, Emmett Culley via users wrote:
Yes, I can see root log in disabled by default. How to I enable root login?
Root login is disabled because the account doesn't have a password. You can give it one during install, but it isn't required, so most people never realize that they can do that. As I prefer su to sudo, I always do. To correct that without reinstalling, run this: sudo passwd which will you to change (or in this case set) the root password. Once that's done you, and anybody else who knows it can become root.
I log in to that workstation many times each day as root. I always create a root password when I create a new machine.
I am asking how do I enable root login for cockpit. I do not want to use sudo. I suppose it may be a KDE plasma issue as I see "Fedora Linux KDE Plasma" in the header of the login dialog. So how do I enable login to plasma as root?
This particular server is the first time I used Fedora instead of CentOS or some other Red Hat derivative. This server was actually first created with Fedora 28, and I just converted it to use as a gateway after upgrading to Fedora 36 (via 29, 30, 31, 32, 33, 34 and 35. Before this I rarely logged into plasma as root, but on occasion I did, and is was successful, then. What has changed and how do I fix it?
I’m puzzled. If you see „KDE Plasma“ on the login screen, you are logging in to your workstation, either directly via console or ssh. There is no Cockpit involved.
You use Cockpit usually to login to Fedora Server, and there is (usually) no Plasma involved, because Server comes without any graphical interface. To enable root login via Cockpit for your server, you must first login on the server as the current server-user with admin privileges, and use sudo passwd one time in the terminal to set a root password (on the server). After that you can permanently log in to the server directly as root. To be able to login to your server it doesn’t matter how you are logged on your workstation.
localhost:9090 in the location bar of the browser.
Isn't that cockpit? Assuming cockpit socket is up, and it is.
I have a screen shot that can make it clear what I am seeing. What is the best way to provide the image?
Note that it also fails exactly the same when attempting to login remotely http://server.domain.tld:9090. Same dialog, same failure.
I assume there is a configuration option or two to adjust, but cannot find what or where they would be.
You say plasma isn't involved, Then why do I see "Fedora Linux KDE Plasma" in the dialog header.
Emmett
If it is still relevant - There is a file /etc/cockpit/disallowed-users which in my case has one entry: root. Try to comment it out if you need root access. Not discussing here security implications of this change.
Leon