Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 3533
Alex Hales
  • 0
Alex HalesTeacher
Asked: June 2, 20222022-06-02T18:21:27+00:00 2022-06-02T18:21:27+00:00

linux – Kubuntu plasma-discover cannot authenticate

  • 0

[ad_1]

While studying Node.js, I found a tutorial that advice to change the ownership of /usr/lib by the command sudo chown -R `id -un`:`id -gn` /usr/lib

That was a big mistake because it brock my system (Kubuntu 20.04).

I tried to restore the ownership to root by the command:
sudo chown -R root:root /usr/lib
Note that sudo is not working. So reboot the system into recovery mode and insert the console with root privilege and execute:
chown -R root:root /usr/lib
Then restart to normal mode.

But applications that require authentication still not working. I spent three days searching for a solution but nothing work.

Finally, I got and Idea that solved the problem. I would like to share it in case anybody got the same problem and deos not want to re-install his/her Linux OS.

I did the following:

  1. Get the ownership of /usr/lib and sub-folders and files to root:root by the following command
    sudo chown -R root:root /usr/lib
  2. Using VirtualBox to run a virtual machine for Kubuntu live.
  3. In side the virtual machine execute the command
find /usr/lib/ \(  -perm -4000 \)  -printf "%m %u:%g %p\n"

to get all the files with Setuid flag.

kubuntu@kubuntu:/usr/lib/xorg$ find /usr/lib/ \(  -perm -4000 \)  -printf "%m %u:%g %p\n"
4754 root:messagebus /usr/lib/dbus-1.0/dbus-daemon-launch-helper
4755 root:root /usr/lib/openssh/ssh-keysign
4755 root:root /usr/lib/eject/dmcrypt-get-device
6755 root:root /usr/lib/xorg/Xorg.wrap
4755 root:root /usr/lib/virtualbox/VirtualBoxVM
4755 root:root /usr/lib/snapd/snap-confine
4755 root:root /usr/lib/policykit-1/polkit-agent-helper-1

  1. Execute the sudo chmod 4xxx <path/to/file> to fix permissions on my system for all the files in previous step
sudo chmod u+s /usr/lib/virtualbox/VirtualBoxVM
sudo chown root:messagebus /usr/lib/dbus-1.0/dbus-daemon-launch-helper 
sudo chmod 4754 /usr/lib/dbus-1.0/dbus-daemon-launch-helper 
sudo chmod 4755 /usr/lib/eject/dmcrypt-get-device 
sudo chmod 4755 /usr/lib/openssh/ssh-keysign 
sudo chmod 4755 /usr/lib/policykit-1/polkit-agent-helper-1 
sudo chmod 4755 /usr/lib/snapd/snap-confine 
sudo chmod 6755 /usr/lib/xorg/Xorg.wrap 

I am still not sure if the group ids for all files are correct.
Are there any ideas to solve this problem?

[ad_2]

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 8143 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 1926 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 1960 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.