Nepgear 2019 年 3 月 8 日 上午 11:17
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
< >
正在显示第 1 - 8 条,共 8 条留言
Eldin 2019 年 3 月 8 日 上午 11:29 
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.
Omega 2019 年 3 月 8 日 上午 11:40 
Jump in to another TTY (CTRL + ALT + F1-12), log in as root and do what Eldin suggested.
Nepgear 2019 年 3 月 8 日 上午 11:58 
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.
Omega 2019 年 3 月 8 日 上午 11:59 
Use the user name "root" and use the password you set for it.
Nepgear 2019 年 3 月 8 日 下午 12:08 
引用自 Omega
Use the user name "root" and use the password you set for it.
I don't have a password set for it though.
该讨论串的作者已表示此帖子解答了原先的主题。
Eldin 2019 年 3 月 8 日 下午 12:13 
Switch to ubuntu recovery mode.

mount -o remount,rw / mount --all chown root:root /usr/bin/sudo chmod 4755 /usr/bin/sudo restart
最后由 Eldin 编辑于; 2019 年 3 月 8 日 下午 12:14
Omega 2019 年 3 月 8 日 下午 12:40 
引用自 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.
Nepgear 2019 年 3 月 8 日 下午 12:57 
Thanks
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50

发帖日期: 2019 年 3 月 8 日 上午 11:17
回复数: 8