LinuxQuestions.org
Help answer threads with 0 replies.
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 05-04-2009, 04:42 AM   #1
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,220

Rep: Reputation: 131Reputation: 131
create linux group & user when SELinux enforcing


Please anybody help me to shortout this problem. How to create linux group and user when SELinux enforcing.

#groupadd tomcat
groupadd: cannot rewrite group file

I have received above mentioned issue when i have executed groupadd command
 
Old 05-04-2009, 04:56 AM   #2
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian
Posts: 1,266

Rep: Reputation: 99
Arrow

Quote:
Originally Posted by kirukan View Post
Please anybody help me to shortout this problem. How to create linux group and user when SELinux enforcing.

#groupadd tomcat
groupadd: cannot rewrite group file

I have received above mentioned issue when i have executed groupadd command
Check the following things-

- Check if other processes are eating up the space on the device.
- Is your filesystem mounted as rw (run mount command)
- If possible reboot the system and then try.
- Try, disabling the SELinux (setenforce 0) and then after adding the group tomcat, again enable it (setenforce 1).
- Are you able to create users ?
- Are you root, (I am sure about this but still asking )
- Permissions of /etc/group

These are the basic troubleshooting steps (apart from rebooting), I would try. Try these, and get back.
 
Old 05-04-2009, 05:31 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,220

Original Poster
Rep: Reputation: 131Reputation: 131
Thanks Vikas, I know that this issue because of SELinux enforcing but what i would like to know,
is there any way to add group without disable SELinux?

Last edited by kirukan; 05-04-2009 at 05:33 AM.
 
Old 05-05-2009, 03:56 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian
Posts: 1,266

Rep: Reputation: 99
Quote:
Originally Posted by kirukan View Post
Thanks Vikas, I know that this issue because of SELinux enforcing but what i would like to know,
is there any way to add group without disable SELinux?
Fine, so I am assuming you have already tried adding users by disabling selinux.

Have you cross checked other points what I have mentioned (other than disabling SELinux and rebooting) ??
 
Old 05-05-2009, 01:32 PM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,220

Original Poster
Rep: Reputation: 131Reputation: 131
Hmmmm, I dont want to check because I can do anything when SELinux disable
 
Old 05-05-2009, 02:44 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Quote:
Originally Posted by kirukan View Post
Thanks Vikas, I know that this issue because of SELinux enforcing but what i would like to know,
is there any way to add group without disable SELinux?
I doubt it's SELinux since I run it in enforcing mode and never have had that kind of trouble. If you believe it is, then please post the relevant audit.log, messages or setroubleshoot warnings to support your conclusion. I'd be happy to help you adjust your local SELinux policy if that is needed.

[EDIT]While you're at it do check the partition /etc/group resides on for available diskspace, check /etc for access rights (0755), your group file for access rights (0644), the group file for extended attributes (lsattr) and stale .lock files.[/EDIT]

Last edited by unSpawn; 05-05-2009 at 02:49 PM.
 
  


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
How to execute a Perl script in ~/.procmailrc with SELinux set to Enforcing? thomasz Linux - Security 1 03-14-2008 05:25 AM
When to create a user & group for an app? jenny1 Linux - Newbie 4 04-30-2007 04:57 PM
create user with secondary group levis_inferno Linux - Networking 6 05-31-2006 12:33 AM
Apache/PHP problems with Selinux enforcing.... maxie_fc3 Fedora 0 01-11-2005 07:40 AM
Northern Maine BSD & Linux User Group php Linux User Groups (LUG) 0 05-23-2004 12:37 PM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
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