LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-22-2008, 09:26 AM   #1
http://
Member
 
Registered: Mar 2008
Posts: 73

Rep: Reputation: 15
help. made a mistake editing /etc/group


hello,

i made a stupid mistake while editing /etc/group. i deleted the 'console' entry...

what does it look like by default? so i can just type it back again. how will this affect my computer.

anyway,

thanks

mike
 
Old 03-22-2008, 09:29 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
on my system:
Code:
console::101:
 
Old 03-22-2008, 09:30 AM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by http:// View Post
hello,

i made a stupid mistake while editing /etc/group. i deleted the 'console' entry...

what does it look like by default? so i can just type it back again. how will this affect my computer.

anyway,

thanks

mike
Code:
console::101:
This is what it looks like.
 
Old 03-22-2008, 10:02 AM   #4
http://
Member
 
Registered: Mar 2008
Posts: 73

Original Poster
Rep: Reputation: 15
thank you very much.

i apologize for bothering you with my carelessness
 
Old 03-22-2008, 10:37 AM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by http:// View Post
thank you very much.

i apologize for bothering you with my carelessness
No problem, you're welcome:-)
 
Old 03-22-2008, 10:53 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I always make a backup of any file I edit outside my home directory especially in '/etc'. For example if I were to edit '/etc/group', before editing it I would make a copy called '/etc/group.$USER-backup' or something like that. That way if I completely mess it up, I can just copy it back and start over.
 
Old 03-22-2008, 11:50 AM   #7
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
wouldn't vim have created a backup anyways? /etc/group~
 
Old 03-22-2008, 01:22 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Yes, but I hate vim.
 
Old 03-22-2008, 05:47 PM   #9
http://
Member
 
Registered: Mar 2008
Posts: 73

Original Poster
Rep: Reputation: 15
thanks for the tips.

I'm still using nano and I'm not sure if it automatically creates backups. Anyway, I'm backing files up manually before I edit them from now on.

Thanks for helping this linux/slackware newbie.
 
Old 03-22-2008, 05:57 PM   #10
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by H_TeXMeX_H View Post
Yes, but I hate vim.
Agreed. I usually use nano or kedit to modify stuff.
 
Old 03-22-2008, 11:44 PM   #11
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
even kedit makes a backup :P

And how do you use kedit as root ? (I did xhost+ once, but thats said to be a security hole)
 
Old 03-22-2008, 11:56 PM   #12
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by duryodhan View Post
And how do you use kedit as root ?
$ su -s -c kedit

Last edited by saulgoode; 03-22-2008 at 11:57 PM.
 
Old 03-23-2008, 04:43 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
nano and nedit, those are the only ones I use. vim is just ridiculous, I can't believe anyone likes it, but whatever.
 
Old 03-23-2008, 06:36 AM   #14
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Quote:
bash-3.1$ su -s -c kedit
Password:
No protocol specified
kedit: cannot connect to X server :0


And forgive me for threadhijacking!
 
Old 03-23-2008, 07:08 AM   #15
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
I usually run "xhost local:" (note the colon at the end) to enable any local user to use the X server. I'm not sure that's good from a security point of view, but it's definitely better than using "xhost +". After doing that, root should be able to use the X server too provided DISPLAY is set to ":0", for example.
 
  


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
I made a mistake :( Megatog615 Slackware 11 04-15-2006 01:22 AM
Mistake I made with Mouse dolphans1 Mandriva 3 11-20-2005 08:33 AM
made a time mistake speel Linux - Newbie 2 04-30-2005 03:20 AM
I made a mistake! Need help now jcksrobbins Mandriva 8 08-30-2003 10:17 PM
I made a mistake need help here ikw38 Linux - Networking 4 06-16-2003 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:36 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