I had bought two laptops. These had two logins "user" and "debian". For some reason the debian login has vanished from one of the laptops.
I am not able to set up wifi. When the ethernet icon is clicked, it shows no networks and shows only the airplan symbol with the click box before.
Sudo command does not work. When I use "sudo -i" in terminal, the response is "sudo must be owned by uid 0 and have the setuid bit set".
Please help to resolve the problem.
It seems you have accidentally changed the ownership/permission of your root(/) filesystem.
Try the following:
- Open the terminal of "user" and type
- su root (passwd: debian)
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
- reboot and try wifi, try 'sudo -i' etc
- If 'root' user isn't available, then try booting into recovery mode by changing the grub (search for it), it will drop you to a root shell, do the above chown and chmod commands
- If not, backup your data, and reinstall from our ISO
Let me know if either of these work.
- have the
- have “
/usr/bin” in your PATH environment variable
- You username must be listed with some privileges in
/etc/sudoers,or in a file in
/etc/sudoerscan only be edited with
visudoby the superuser, root.
- There may be an
/etc/sudo.conffile that further refines the capabilities of the
sudocommand. see man pages.
- In almost all cases you will need to enter your personal password when prompted before the command will execute. After that a timeout period starts where you can call sudo commands without re-entering a password for a short period of time.
- If you are actually logged in as root, you may or may not be prompted for a password, usually not. Some locked-down systems require a special sudo password to do dangerous things even for root.