Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I am currently running on Ubuntu 7.04. I have one user account set up for myself. My user account used to belong to a bunch of different groups. In my attempt to add another group, I accidentally made myself a member of only that group, and I deleted all my other group memberships. This caused many programs to stop working when I tried to run them. I can't even use "sudo" anymore.
How can I restore my previous group memberships? I don't remember the names of all the groups. Is there a way to "reset" my account?
This is for 6.06.1, but I doubt 7.04 is that different:
At the grub prompt screen, arrow-down once to "Recovery mode", press return.
You will be logged in as root without needing a password, and without a GUI either.
Make yourself a member of the following groups: yourusername adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin
Obniously, you'll have to change "yourusername" to whatever your username is.
Then type reboot
Try logging in as yourself
One question, though: I am now able to run administrative programs without having to use sudo or gksu. This isn't really good from the security standpoint. How do I make it so that I do have to use sudo and type in a password?
I am now able to run administrative programs without having to use sudo or gksu.
If this is the case, you have messed up something else.
Rescue your personal data, and reinstall, otherwise you have no idea what security holes may be left open.
Rescue your personal data, and reinstall, otherwise you have no idea what security holes may be left open.
Isn't that a bit radical advice for something that looks like it's just a configuration issue? Isn't there a way to check package contents changes? Or say debug the login to find out?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.