LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-25-2007, 11:36 AM   #1
serg.kr
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian
Posts: 15

Rep: Reputation: 2
Accidentally deleted all my group memberships


Hello,

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?
 
Old 08-25-2007, 12:29 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
 
Old 08-25-2007, 09:21 PM   #3
serg.kr
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 2
Thanks for the help!

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?
 
Old 08-26-2007, 10:43 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
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.
 
Old 08-26-2007, 10:59 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally deleted GRUB oryhara Linux - General 3 06-09-2006 05:23 PM
I accidentally deleted libstdc++ :( piforever Fedora 4 01-01-2006 06:03 PM
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
Accidentally deleted /etc/init.d .. what do i do? :| waste Linux - General 5 03-04-2004 03:39 AM
accidentally deleted /etc/profile tanbetien Fedora 2 11-21-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration