LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-24-2006, 09:46 PM   #1
superluser
LQ Newbie
 
Registered: Aug 2006
Location: Rochester, NY USA
Distribution: PLD
Posts: 10

Rep: Reputation: 0
groupadd: cannot rewrite group file


[Every time I post here, I prove myself to be an utter idiot. So I'll say it up front: I am an utter idiot.]

I can't add groups to /etc/groups. I get the error listed in the subject. This is a problem, because it means that I can't install a few packages. I read that you have to temporarily disable SELinux, but the only way to do that is to edit /etc/selinux/config.

Only problem: /etc/selinux/config: No such file or directory

What do I do?
 
Old 09-25-2006, 01:55 PM   #2
abegetchell
Member
 
Registered: Mar 2006
Distribution: RHEL, Fedora, Ubuntu
Posts: 32

Rep: Reputation: 15
Did you make /etc/groups immutable for some reason?

chattr -i /etc/groups
 
Old 09-25-2006, 01:58 PM   #3
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
try the command
setenforce 0
 
Old 09-25-2006, 06:30 PM   #4
superluser
LQ Newbie
 
Registered: Aug 2006
Location: Rochester, NY USA
Distribution: PLD
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by abegetchell
Did you make /etc/groups immutable for some reason?

chattr -i /etc/groups
Don't think so:

]$ lsattr /etc/group
----------------- /etc/group

Quote:
Originally Posted by w3bd3vil
try the command
setenforce 0
No cookie for you! That sets it to permissive, but I think I need to turn it all the way off.

I found a site that has the basic format for /etc/selinux/config, and I made it manually. It gave me an error when I tried to edit it in a sudo session, so I guess that's a sign that it's looking at it.

You can only disable SELinux on boot, so I'm going to reboot and see if 1) it disables it and 2) I can add groups.

Wish me luck!
 
Old 09-25-2006, 07:24 PM   #5
superluser
LQ Newbie
 
Registered: Aug 2006
Location: Rochester, NY USA
Distribution: PLD
Posts: 10

Original Poster
Rep: Reputation: 0
I can't believe that that worked.

But it did!
 
  


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
Passing groupadd to execv() returned error msg: "file already locked." walwali Programming 9 11-22-2010 07:36 AM
groupadd: unable to lock group file?! macagent Linux - Newbie 6 07-08-2007 06:31 PM
How to rewrite a VIMed file? backpacker Linux - Software 9 06-17-2006 05:24 PM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 02:30 PM
The mozilla lock file. Stopping its rewrite.. Nichole_knc Slackware 2 05-18-2004 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:13 PM.

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