Ownership/permissions
I accidentally used "sudo chown -R <username> /usr share/applications" instead of "sudo chown -R <username> /usr/share/applications". How can this be reverted?

Using "sudo <command>" now gives "sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set", I don't have permission to install anything anymore, and the computer doesn't connect to network.

Ubuntu 18.04 with lxqt/openbox desktop environment. :eagletear:
Автор сообщения: Eldin:
Switch to ubuntu recovery mode.

mount -o remount,rw / mount --all chown root:root /usr/bin/sudo chmod 4755 /usr/bin/sudo restart
< >
Сообщения 18 из 8
Have you tried this?
  1. Log out as the current user, then log back in as root.
  2. Execute
    chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
  3. Log out as root, then log back in as the current user.
Jump in to another TTY (CTRL + ALT + F1-12), log in as root and do what Eldin suggested.
How do I login as root? I read online the password doesn't exist and you have to set it with a sudo command, which I can't use.
Use the user name "root" and use the password you set for it.
Автор сообщения: Omega
Use the user name "root" and use the password you set for it.
I don't have a password set for it though.
Автор темы посчитал это сообщение ответом на свой вопрос.
Switch to ubuntu recovery mode.

mount -o remount,rw / mount --all chown root:root /usr/bin/sudo chmod 4755 /usr/bin/sudo restart
Отредактировано Eldin; 8 мар. 2019 г. в 12:14
Автор сообщения: 99% Crit Chance
Автор сообщения: Omega
Use the user name "root" and use the password you set for it.
I don't have a password set for it though.
Yes you have, it will likely be the same password as the one you normally use to log in.
< >
Сообщения 18 из 8
Показывать на странице: 1530 50

Дата создания: 8 мар. 2019 г. в 11:17
Сообщений: 8