cockpit-project / cockpit

Cockpit is a web-based graphical interface for servers.
http://www.cockpit-project.org/
GNU Lesser General Public License v2.1
11.26k stars 1.12k forks source link

limited access #17872

Closed Razriel3 closed 1 year ago

Razriel3 commented 2 years ago

Explain what happens

I am using cockpit in a YOCTO enviorment. currently I am able to login with root permission and have all capabilies. I have created another user in my system and gave him permissons to the following gruops:

groups user root adm cdrom sudo dip plugdev user

also added the username to the sudowers file

still when I login with this user I see on top message "limited access" what do I need to do to have full capability for a user which is not root ?

see below print from log message:

Nov 3 07:43:24 imx8mn-ddr4-evk-target1 authpriv.alert sudo: tigogateway : a password is required ; PWD=/run/user/1200 ; USER=root ; COMMAND=validate Nov 3 07:43:24 imx8mn-ddr4-evk-target1 daemon.info dbus-daemon[211]: [system] Successfully activated service 'org.freedesktop.hostname1' Nov 3 07:44:03 imx8mn-ddr4-evk-target1 authpriv.alert sudo: tigogateway : a password is required ; PWD=/run/user/1200 ; USER=root ; COMMAND=validate

the last message arrived when trying to click "Turn on administrative access" button

Version of Cockpit

tag 220

Where is the problem in Cockpit?

No response

Server operating system

other

Server operating system version

YOCTO

What browsers are you using?

Chrome

System log

Nov 03 07:43:24 imx8mn-ddr4-evk-target1 cockpit-tls[114659]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Nov 03 07:43:24 imx8mn-ddr4-evk-target1 cockpit-tls[114659]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Nov 03 07:43:24 imx8mn-ddr4-evk-target1 cockpit-tls[114659]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Nov 03 07:43:24 imx8mn-ddr4-evk-target1 cockpit-tls[114659]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.

getting same messages also when I enter with root
jelly commented 2 years ago

Are you building cockpit 220? That's a really old release from more then two years ago. I'd advice to try the latest release, but that might not fix your issue.

KKoukiou commented 1 year ago

@Razriel3 this is a known limitation in cockpit. We hide parts of the UI if the logged in users is not logged in with the superuser mode. See this is already reported in a similar way here: https://github.com/cockpit-project/cockpit/issues/17346