[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
LinuxShellCommandsCHMOD
CHMOD

A *nix utility and made accessible to C and C++ through a (?which?) library. This utility will change the  ?permission  ?flags on a file.  ?Permissions are made up by adding together the different codes that stand for read, write, and execute. The first bit is special and will set special permissions such as: setuid on execution, setgid on execution and  ?sticky bit.


Permission List:
     4000    Executable files with
		   this bit set will run with effective uid set to the uid of
		   the file owner.  Directories with the set-user-id bit set
		   will force all files and sub-directories created in them to
		   be owned by the directory owner and not by the uid of the
		   creating process, if the underlying file system supports
		   this feature
     2000    Executable files with
		   this bit set will run with effective gid set to the gid of
		   the file owner.
	   
     1000    Set The Sticky Bit
	    0400    Allow read by owner.
	    0200    Allow write by owner.
	    0100    For files, allow execution by owner.  For directories,
		   allow the owner to search in the directory.
	    0040    Allow read by group members.
	    0020    Allow write by group members.
	    0010    For files, allow execution by group members.  For directoú
		   ries, allow group members to search in the directory.
	    0004    Allow read by others.
	    0002    Allow write by others.
	    0001    For files, allow execution by others.  For directories
		   allow others to search in the directory.


--Some Content from freeBSD 4.7 man pages

last edited (November 18, 2006) by bilderbikkel, Number of views: 1928, Current Rev: 4 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.