Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limited user access #17

Open
Rubonnek opened this issue Oct 4, 2022 · 7 comments
Open

Limited user access #17

Rubonnek opened this issue Oct 4, 2022 · 7 comments

Comments

@Rubonnek
Copy link

Rubonnek commented Oct 4, 2022

Describe the bug

After logging into the cockpit UI, a user will be of limited access if the are not in the sudo group.

Context

  • Hardware: virtualized through QEMU
  • YunoHost version:
yunohost: 
  repo: stable
  version: 11.0.9.15
yunohost-admin: 
  repo: stable
  version: 11.0.10
moulinette: 
  repo: stable
  version: 11.0.9
ssowat: 
  repo: stable
  version: 11.0.9
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

  • If you performed a command from the CLI, the command itself is enough. For example:
    sudo yunohost app install cockpit
  • Apply the workaround on Getting message "Please enable javascript" on login page #16 to be able to access the web ui:
    sudo chmod +r /etc/cockpit/cockpit.conf
  • Access Cockpit's web UI through the URL it was installed in.
  • Note the "Limited Access" entry in the top right bar. When an user has administrator access, it should read "Administrative access".*

Expected behavior

I expected to be able to somehow let users escalate privileges through the yunohost UI (i.e. to be able to add them to the sudo group through the UI)

There's no documentation either so I'm providing a workaround below.

Logs

N/A

Workaround

Open a terminal in yunohost and add the user to the sudo group:

sudo gpasswd -a myuser sudo
@Rubonnek
Copy link
Author

Rubonnek commented Oct 4, 2022

I just noticed there's a failed User Manager for my user id.

Here's what I'm seeing through systemctl --failed:

  UNIT              LOAD   ACTIVE SUB    DESCRIPTION
● [email protected] loaded failed failed User Manager for UID 5137

Could that be related?

@danielo515
Copy link

your workaround worked for me, thanks

@jcn50
Copy link

jcn50 commented Jun 26, 2024

More than a year later I have the same issue: (and adding the $user to the sudo group does not fix)
cockpit-limited-access

@jcn50
Copy link

jcn50 commented Jun 27, 2024

I just noticed there's a failed User Manager for my user id.

Here's what I'm seeing through systemctl --failed:

  UNIT              LOAD   ACTIVE SUB    DESCRIPTION
● [email protected] loaded failed failed User Manager for UID 5137

Could that be related?

I have the same issue, I do not know how to fix....

@jcn50
Copy link

jcn50 commented Jun 27, 2024

OK I think I found the fix for this~ it is missing the cockpit-askpass file:

root@private:~# ls -lah /usr/lib/cockpit/cockpit-askpass
ls: cannot access '/usr/lib/cockpit/cockpit-askpass': No such file or directory

if you are missing this file too, the fix is this command:

apt reinstall cockpit-bridge cockpit-pcp && systemctl restart cockpit

I have no idea why that file is missing, my only assumption is that it is affecting OLD Yunohost instances (even though my old instance is up-to-date and completely upgraded), because I do not have this problem on a NEW one.

I am still getting the User Manager for UID 5137 failed service from above #17 (comment)

jcn50 added a commit to jcn50/cockpit_ynh that referenced this issue Jun 27, 2024
See issue YunoHost-Apps#17 : some instances are missing some files in /usr/lib/cockpit/
jcn50 added a commit to jcn50/cockpit_ynh that referenced this issue Jun 27, 2024
See issue YunoHost-Apps#17 missing files in /usr/lib/cockpit/
@jcn50
Copy link

jcn50 commented Jun 27, 2024

@orhtej2 can you accept my change on the testing branch?.. I will revert if the fix worked!

@jcn50 jcn50 mentioned this issue Jun 27, 2024
2 tasks
@jcn50
Copy link

jcn50 commented Jun 27, 2024

Update: I found that failed service fix too~~ it took me a while to figure out where the problem was~ there is something to learn every day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants