Quote:
Originally Posted by berndbausch
chown -R root / won’t help you, since there are many files and directories that should not be owned by root.
Your situation doesn’t make sense to me. You changed ownership of the entire filesystem, yet the directories you checked are owned by root? How this is related to not finding sudo is not clear to me either.
A bit more clarification, please:
What Linux distro is this?
Which directories have you checked?
What are the permissions and ownership of the top directories right under /?
sudo should be /usr/bin/sudo. Does it exist? If yes, what are its permissions, and what is the content of your PATH variable?
Have you tried running su instead of sudo?
|
Linux: Debian GNU/Linux 9 (stretch) - SMP PVE 4.15.18-27 (Wed, 10 Oct 2018)
Checked Directories: Bin, Boot, dev => all owned by root, some directories onwed by another group like /dev/kvm => group: disk
Permissions for alle Folders in TOP-Directories /: root:root
Sudo in /usr/bin/sudo doesn't exists.
'su root' to switch user doesnt work with the error 'Authentification failed' after entering a password. The password is right. Its saved in a DataTable and directly copied into the terminal. Still worked everytime.
Commands like 'su apt-get update' says: no user with apt-get
The Server can be started inside the rescue mode, if it helps.