Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-03-2010, 11:40 PM   #1
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
How to remove group write bit?

I know this may sound little incomplete but this is what i read on some linux hardening guide.I dont have any clue on how to remove group's write bit.

I m posting the exact sentence of the hardening guide.
The group write bit should removed from all system files that do not explicitly require it to be enabled
What all system files to be taken care of?
Old 10-03-2010, 11:49 PM   #2
Registered: May 2005
Location: Honolulu, HI
Distribution: Ubuntu 10.04
Posts: 56

Rep: Reputation: 15
To remove group write permissions try this.

chmod g-w directory
Insert your specific directory where you see "directory"

Last edited by Bryanlee; 10-03-2010 at 11:51 PM.
Old 10-03-2010, 11:49 PM   #3
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
-rwxrwxr-x filename , I think highlighted bit is group write bit, Using this bit permission bit we can give authorize group members to edit file.

Old 10-04-2010, 01:32 AM   #4
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Some more information about Linux permissions can be found on various pages on the web, for example this one, covering both the textual and octal representation of permissions. The octal representation is a little more compact than the textual one, and not too difficult to understand, so you should get familiar with it. You'll be using octal representation also if (when) you set umask, which you use to control default permissions when files are created. The difference is that with umask you're setting the mask, not the "direct" representation, so be careful.
Old 10-04-2010, 10:15 AM   #5
Registered: Jun 2010
Posts: 46

Rep: Reputation: 21

you can change the basic permissions by manipulating their corresponding bits. It can be done in numeric format where 1 is to execute, 2 is for write and 4 is for reading. It is too much to type to cover this, has training DVDs that cover it well. Keep in mind that in today's Linuxes, there's also implementation of of ACL (access control list, commands like getfacl, setfacl) for Linux, it is rarely used on a trivial, one user stations, but on servers they are used quite often.


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 remove the set-group-ID sunilvadranapu Linux - General 5 02-11-2010 07:10 PM
[SOLVED] How to remove a group of packages? quanta Slackware 5 06-27-2009 07:13 AM
Always set group write bit in given directory? jnojr Linux - Newbie 3 05-07-2009 07:29 PM
Group Write Problems gizza23 Linux - General 4 07-27-2007 11:53 AM
Write access for group / other Cubsy Linux - Software 2 11-06-2003 12:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:43 AM.

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