LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-23-2012, 01:47 PM   #1
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Rep: Reputation: 0
Default users group setup


So I messed with something I probably shouldn't have messed with and now I'm paying the price. if someone using slackware (to be sure groups are the right groups) how can I put my groups back to the default I tried adding myself to video group for my normal user but I did both

usermod -G video shawn

along with

usermod -a -G video shawn

from what I can tell users in the group I should be using primarily so i went back and did

usermod -G users shawn

I'm sure video isn't part of my groups and I added that manually but can't seem to get rid of it now I don't need it anymore. How can I get back to the default group setup in every way I ruined it I'm assuming I have my primary group back to normal but maybe I'm wrong. I just need to get things back to normal if possible if I must I will just update all my files and redo the system but thats all I've done that would effect my groups that i haven't for sure put back to normal.

I tried editing /etc/group and taking my name off video but i'm still in video group but before today mplayer couldn't access my soundcard because alsa but now it can since I given myself permission to video i can access alsa and don't know how to reverse all of this

Last edited by fatalerror0x00; 11-23-2012 at 02:18 PM.
 
Old 11-23-2012, 02:13 PM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Here is the groups my user belongs to.

Quote:
groups
users lp wheel floppy mail audio video cdrom plugdev power netdev
This is Slack 14, 32 bit. I looked at my Slack 13.37, 64 bit, it was the same.

What 'problems' are you having that you think are group related?

Last edited by camorri; 11-23-2012 at 03:10 PM. Reason: Fixed spelling.
 
Old 11-23-2012, 02:26 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,298

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
Code:
# usermod -g users shawn
# usermod -a -G audio,cdrom,floppy,plugdev,video,power,netdev,lp,scanner shawn
should fix everything up, assuming that is your only problem.

Last edited by T3slider; 11-23-2012 at 02:28 PM.
 
Old 11-24-2012, 06:55 AM   #4
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
If it was me, I would tar.gz all your used data in a temp dir, delete the user with deluser, recreate the user with adduser making sure you add yourself to _all_ additional groups, restore data from the archive. I think this is also a good way to get rid of clutter.
 
Old 11-24-2012, 06:13 PM   #5
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
I've reinstalled my OS to fix the issue and also have fixed many other issues I was having at the same time guys so I'm all good now on this issue.
 
Old 11-24-2012, 07:50 PM   #6
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,618
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by fatalerror0x00 View Post
So I messed with something I probably shouldn't have messed with and now I'm paying the price...
MAKE BACKUPS.

So, I hope you get my drift here.
Cause I am here to tell you, you will get tired of re-installing just to fix stuff you "shouldn't have messed with".
 
Old 11-24-2012, 08:33 PM   #7
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
haha I'm working on writing a backup script taking sometime but i'm getting there but i do have a backup currently don't worry :P I decided I needed to start doing that :P
 
Old 11-25-2012, 10:24 AM   #8
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,618
Blog Entries: 1

Rep: Reputation: Disabled
Yeah,

I had to restrain myself from flaming the hell out of you.

"Help!..." said the poster.
"Restore from backup...", I urged.
"I have no backups...", he replied.
"Now you have two problems."

nuff said.

Peace!
 
Old 11-25-2012, 12:49 PM   #9
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
haha Yeah I know :P I made a backup :P NOW
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 05:57 PM
Default Group For New Users carlosinfl Red Hat 1 10-28-2009 11:03 AM
Script to add a secondary group to all users except system default users Tekken Linux - Server 5 06-29-2009 05:02 PM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 12:50 PM


All times are GMT -5. The time now is 03:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration