[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
BTW I happened to have an Eoan VM laying around and tested it out and found the same problem. so this has actually been long standing. We'll see what upstream says. ** Package changed: lxqt-admin (Ubuntu) => lxqt-policykit (Ubuntu) ** Changed in: lxqt-policykit (Ubuntu) Importance: Undecided => High ** Changed in: lxqt-policykit (Ubuntu) Status: Confirmed => Triaged ** Bug watch added: github.com/lxqt/lxqt-policykit/issues #105 https://github.com/lxqt/lxqt-policykit/issues/105 ** Also affects: lxqt via https://github.com/lxqt/lxqt-policykit/issues/105 Importance: Unknown Status: Unknown ** Summary changed: - Lubuntu 20.04 lxqt-admin-user Action (usermod) failed + lxqt-policykit crashes with general protection fault in libgobject-2.0 ** Description changed: - This is testing was performed as a result of a user support request on a - fresh install (screen position & wallpaper changed; nfs-common added & - that's about all) + STEPS TO REPRODUCE + == + 1. Boot post-18.04 Lubuntu + 2. Use lxqt-admin-user to create a second user (let's call it user2) + 3. Use lxqt-admin-user to add user2 to sudo + 4. Logout and back in again (yes, this is a requirement to reproduce— if you want, you can first remove user2's sudo and it will work, but then add it back and continue on) + 5. User lxqt-admin-user to try to remove user2's membership in the sudo group (fail) + 6. Try running pkexec against something. Since synaptic is well set up for it, this is a good example, so install synaptic and run `synaptic-pkexec` (fail) + 7. Remove user2's membership in the sudo group for sure with `sudo usermod -G "" user2` + 8. Try running the pkexec command again (success) - https://discourse.lubuntu.me/t/no-authorization-after-adding-user/1033/ + EXPECTED RESULT + === + Both the pkexec and the lxqt-admin-user change succeed without crashing. - A new user was added "pw_admin", logout & some testing done without - issue. - - I logged back in as me and tried to remove "sudo" rights from "pw_admin" - user logged in as "guiverc" which is where I first had noticed this - error. - - On testing, it appears to occur on retracting/removing rights rather - than adding them, and after the privileges are added only (though my - testing is incomplete; takes awhile for rights to drop & thus be asked - again; no issue if elevated-privileges already exists it so far appears - to me) - - Expected Result: - - The 'sudo' permission gets removed - - Actual Result: - - I get an error show in discourse site, or uploaded here - - When the error pop-up ( - - "Action (usermod) failed: - Error executing command as another user: Not authorized - This incident has been report" occurs - - the following is written to `dmesg` output - - [ 764.849494] traps: lxqt-policykit-[1598] general protection fault - ip:7f8c94773671 sp:7ffc5acf6618 error:0 in - libgobject-2.0.so.0.6400.2[7f8c94745000+36000] - - and in /var/crash/ (it was submitted) - -rw-r- 1 guiverc whoopsie 3.2M Apr 29 11:37 _usr_bin_lxqt-policykit-agent.1000.crash + ACTUAL RESULT + = + lxqt-policykit crashes, e.g: + [ 764.849494] traps: lxqt-policykit-[1598] general protection fault ip:7f8c94773671 sp:7ffc5acf6618 error:0 in libgobject-2.0.so.0.6400.2[7f8c94745000+36000] ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: lxqt-admin 0.14.1-1ubuntu1 ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30 Uname: Linux 5.4.0-28-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: LXQt Date: Wed Apr 29 12:04:34 2020 InstallationDate: Installed on 2020-04-28 (0 days ago) InstallationMedia: Lubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) SourcePackage: lxqt-admin UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: lxqt-policykit crashes with general protection fault in libgobject-2.0 To manage notifications about this bug go to: https://bugs.launchpad.net/lxqt/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
Well, I've confirmed this with the latest upstream sources. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
@wxl: Yes, your steps to reproduce are correct. Except that I did not try it with pkexec. Instead I tried it with diskmanager, which automatically asks for root privileges. (I do not know which program it invokes.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
So the steps to reproduce this are somewhat unclear, so let me know if I did anything wrong: 1. Boot fresh installation of Lubuntu 20.04 2. Use lxqt-admin-user to create a second user (let's call it user2) 3. Use lxqt-admin-user to add user2 to sudo 4. Logout and back in again (yes, this is a requirement to reproduce— if you want, you can first remove user2's sudo and it will work, but then add it back and continue on) 5. User lxqt-admin-user to try to remove user2's membership in the sudo group (fail) 6. Try running pkexec against something. Since synaptic is well set up for it, this is a good example, so install synaptic and run `synaptic-pkexec` (fail) 7. Remove user2's membership in the sudo group for sure with `sudo usermod -G "" user2` 8. Try running the pkexec command again (success) I did check this also against the adm group and it didn't seem to have an effect. Anyways, I'm pretty sure the error, if anywhere, exists in lxqt- policykit. It's had like almost zero upstream issues, so that's interesting. It's also possible this is a pkexec issue of some kind. It has caused many headaches for folks. I'm updating my machine running off of LXQt's git master and we'll see if it behaves any better. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
I can confirm the remedie of removing all other users except one from the sudo group (see psychotrain65 from 2020-06-14): I had two users as sudo. I removed them alternately. As long as I had only one user in sudo everything worked as expected. It did not matter which user. As soon as two users were in sudo the admin-user action failed. Why does Lubuntu support one user in sudo only? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
I'm getting [ 598.506741] traps: lxqt-policykit-[1687] general protection fault ip:7f1023e0f671 sp:7ffdc029 error:0 in libgobject-2.0.so.0.6400.3[7f1023de1000+36000] After running `synaptic-pkexec` and enter password. Check this bug (may be related or duplicate) - https://bugs.launchpad.net/ubuntu/+source/lxqt-policykit/+bug/1899782 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
synaptic starts ok with sudo (don't do this?!) but not with the desktop entry which is basically `pkexec synaptic`. So I think this supports Chris's hypothesis -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
I can confirm the issue after a fresh install of Lubuntu 20.04 on an old Asus X201E. I could revert the behaviour to normal deleting adm and sudo from second user groups. It seems that Lubuntu 20.04 accepts only one admin... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
I can confirm this issue after a fresh install of Lubuntu 20.04 on a Medion Akoya P8610, too. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: lxqt-admin (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
I can confirm this problem when a new Lubuntu 20.04 is installed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
User @scro on https://discourse.lubuntu.me/t/no-authorization-after- adding-user/1033/11 indicated an opinion that it maybe a regression... "Interestingly though, when I use a stick with version 19.10 with multiple users and do an update, everything works just fine. It doesn’t work with a new installation though." -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875774] Re: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed
this is comment #2 repeated (after delay to ensure privileges were lost) I can find `statx(AT_FDCWD, "/usr/local/sbin/pkexec",` on this one, which is where I suspect near/where things go wrong.. ** Attachment added: "lxqt-admin-user_rm_pw_admin_from_sudo.strace2" https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+attachment/5363068/+files/lxqt-admin-user_rm_pw_admin_from_sudo.strace2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875774 Title: Lubuntu 20.04 lxqt-admin-user Action (usermod) failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxqt-admin/+bug/1875774/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs