UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
unfortunately for some reason the sudo command doesn't work anymore on my ubuntu (7.04) machine. It's not displaying any output no matter which command I try to run. Also, the root account which I enabled a couple of weeks ago doesn't let me log in. It just says "Authentication failure". I tried resetting it from the Live-CD - no change. And finally, when I try to change some systems settings from the gui menus, after I enter my password it first says "Wrong password" and then after the second try "the communication with su failed" (or rather the german equivalent to that).
So I pretty much haven't got any control over my system right now which is rather annoying.
Any ideas?
For sudo to work on Ubuntu:
1) make sure your user belongs to the 'sudo' group (cat /etc/group)
2) make sure your user is configured correctly in /etc/sudoers Sometimes it's configured so that users in a specific group, like wheel, are entitled to sudo and therefore you would have to add yourself there (I don't think this is how it goes on Ubuntu). Belonging to group 'sudo' entitles to use the command, but unless sudoers is configured, there are no permissions to run anything with it.
After those two I can't think of much else. Root password is an odd thing. I'd search for rootkits or something, just in case, to make sure the system is not compromised. Ubuntu is not too well secured after installation, unless it's hardened a bit - any other distribution isn't either, for that matter.
To reset root password:
1) reboot your computer, and when GRUB loads, get to the menu (usually pressing ESC is what you're asked to do, to display GRUB menu, unless it isn't by default)
2) select (with arrow keys) the kernel you usually boot, if it's not selected (highlighted)
3) Press button 'e' to edit commands before booting, select the 'kernel' line and press 'e' again (information at the bottom tells this)
4) add the word 'single' to the kernel line; this modification tells to boot into single-user mode (maintenance)
5) boot that kernel by pressing 'b'
6) once booted, you should be logged in as root (THIS is why you should set a bootloader password, get it?)
7) run 'passwd' and set some password for root
8) reboot your machine the usual way
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.