<html><!-- #BeginTemplate "/Templates/coolblue-inside.dwt" -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>Web Site Design Chmod Generator Set File Permissions</title>
<meta name="title" content="Tutorial: Chmod calculator">
<meta name="description" content="This page contains a chmod calculator. You'll never mess up setting file permissions again.">
<meta name="Author" content="Webmajestic.com">
<meta name="keywords" content="web site design, web design, web designer, beginner, tutorial, getting started, website design, design resources, html help, banners, wanna-be, learn web design, learn website design, beginning web design, website help, domain names, web hosting, javascript, dhtml, graphics links, sound loops, free sounds, sound wavs, site promotion, places to add your url, useful links, free scripts, getting started in website design, add your url, search portal, postcard, guestbook, making money on the internet, affiliate programs, finding a web site sponsor, website sponsor, free web space, free home page, free email, web designer, designing links">
<META NAME="rating" content="general">
<META NAME="distribution" CONTENT="global">
<META NAME="resource-type" CONTENT="document">
<META NAME="last-modified" CONTENT="2006/12/08">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="10_days">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<!-- #EndEditable --> 
<LINK REL=stylesheet HREF="http://www.webmajestic.com/mystyle.css" TYPE="text/css">
</head>
<body bgcolor="#79849A" topmargin="0">
<!-- Kontera ContentLink(TM);--> 
<script type='text/javascript'>
var dc_AdLinkColor = 'green' ;
var dc_UnitID = 14 ;
var dc_PublisherID = 11118;
var dc_adprod = 'ADL' ;
</script>
<script type='text/javascript' 
src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'>
</script>
<!-- Kontera ContentLink(TM) --> 
<table border="0" cellpadding="0" cellspacing="0" width="750" align="center">
  <tr> <!-- Shim row, height 1. --> 
    <td><img src="images/shim.gif" width="750" height="1" border="0"></td>
    <td><img src="images/shim.gif" width="1" height="1" border="0"></td>
  </tr>
  <tr valign="top"> 
    <td bgcolor="#FFFFFF"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="10">
        <tr> 
          <td width="76%" valign="top"> 
            <div align="center"> 
              <table border="0" cellpadding="0" cellspacing="0" width="750">
                <!-- fwtable fwsrc="home2.png" fwbase="index.gif" --> 
                <tr> <!-- Shim row, height 1. --> 
                  <td><img src="images/shim.gif" width="217" height="1" border="0"></td>
                  <td><img src="images/shim.gif" width="533" height="1" border="0"></td>
                  <td><img src="images/shim.gif" width="1" height="1" border="0"></td>
                </tr>
                <tr valign="top"><!-- row 1 --> 
                  <td rowspan="2"><img name="index_r1_c1" src="images/index_r1_c1.gif" width="217" height="263" border="0" usemap="#hoover_index_r1_c1MapMap"><map name="hoover_index_r1_c1MapMap"><area shape="rect" coords="8,9,198,245" href="index.html" alt="Home" title="Home"></map></td>
                  <td><img name="index_r1_c2" src="images/index_r1_c2.gif" width="533" height="230" border="0" usemap="#hoover_index_r1_c1Map"><map name="hoover_index_r1_c1Map"><area shape="rect" coords="447,176,531,213" href="http://www.webmajestic.com/contact.html" alt="Contact Webmajestic" title="Contact Webmajestic"><area shape="rect" coords="349,175,444,213" href="http://www.webmajestic.com/resources.html" alt="Resources" title="Resources"><area shape="rect" coords="3,175,79,214" href="http://www.webmajestic.com/web_lessons.html" alt="Web Design Lessons" title="Web Design Lessons"><area shape="rect" coords="83,176,169,214" href="http://www.webmajestic.com/templates" alt="Web Design Templates" title="Web Design Templates"><area shape="rect" coords="170,177,262,213" href="http://www.webmajestic.com/articles" alt="Web Design Articles" title="Web Design Articles"><area shape="rect" coords="263,177,349,212" href="http://www.webmajestic.com/graphics" alt="Free Web Graphics" title="Free Web Graphics"><area shape="rect" coords="4,4,527,165" href="index.html" alt="Home" title="Home"></map></td>
                  <td><img src="images/shim.gif" width="1" height="230" border="0"></td>
                </tr>
                <tr valign="top"><!-- row 2 --> 
                  <td background="images/index_r2_c2.gif" valign="middle">
                    <div align="right"><!-- Google CSE Search Box Begins --> 
                      <form id="searchbox_001927420258398297637:nplqsaxspt4" action="http://www.webmajestic.com/results.html">
                        <input type="hidden" name="cx" value="001927420258398297637:nplqsaxspt4" />
                        <input name="q" type="text" size="30" value=" " />
                        <input style="background:CCCCCC; border-width:1px" type="submit" name="sa" value="Search" />
                        <input type="hidden" name="cof" value="FORID:11" />
                      </form>
                      <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_001927420258398297637%3Anplqsaxspt4"></script>
                      <!-- Google CSE Search Box Ends --></div>
                  </td>
                  <td><img src="images/shim.gif" width="1" height="33" border="0"></td>
                </tr>
              </table>
              
              
            </div>
            <!-- #BeginEditable "content" --> 
            <p> 
            <center>
              <font face="Verdana, Arial, Helvetica, sans-serif" size="4"> </font> 
              <div align="center"></div>
              <table width="79%" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr valign="top"> 
                  <td height="252"> <font size="3"> </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                    </font> 
                    <center>
                      <center>
                        <p align="center"><font size="5"><font color="#000000" size="4"> 
                          <script language="JavaScript">
<!--
// 4-digit Chmod calculator
// Based on code by Peter Crouch 2000. All rights reserved.
// Modified 2001 to 4-digit by William E. Landfair-Owens
// http://welo.ikemail.com
// Visit http://wsabstract.com for this script and more

function calculator(user, number){
// Superuser
if (user == "superuser" && number == "4"){var box = eval("document.chmod.superuser4")}
if (user == "superuser" && number == "2"){var box = eval("document.chmod.superuser2")}
if (user == "superuser" && number == "1"){var box = eval("document.chmod.superuser1")}
// Owner
if (user == "owner" && number == "4"){var box = eval("document.chmod.owner4")}
if (user == "owner" && number == "2"){var box = eval("document.chmod.owner2")}
if (user == "owner" && number == "1"){var box = eval("document.chmod.owner1")}
// Group
if (user == "group" && number == "4"){var box = eval("document.chmod.group4")}
if (user == "group" && number == "2"){var box = eval("document.chmod.group2")}
if (user == "group" && number == "1"){var box = eval("document.chmod.group1")}
// Other
if (user == "other" && number == "4"){var box = eval("document.chmod.other4")}
if (user == "other" && number == "2"){var box = eval("document.chmod.other2")}
if (user == "other" && number == "1"){var box = eval("document.chmod.other1")}
if (box.checked == true){
if (user == "superuser"){
document.chmod.h_superuser.value += ("+number")
var a= (document.chmod.h_superuser.value)
var b= eval(a)
document.chmod.h_superuser.value=b
document.chmod.t_superuser.value=b
}if (user == "owner"){
document.chmod.h_owner.value += ("+number")
var a= (document.chmod.h_owner.value)
var b= eval(a)
document.chmod.h_owner.value=b
document.chmod.t_owner.value=b
}if (user == "group"){
document.chmod.h_group.value += ("+number")
var a= (document.chmod.h_group.value)
var b= eval(a)
document.chmod.h_group.value=b
document.chmod.t_group.value=b
}if (user == "other"){
document.chmod.h_other.value += ("+number")
var a= (document.chmod.h_other.value)
var b= eval(a)
document.chmod.h_other.value=b
document.chmod.t_other.value=b
}
}
if (box.checked == false){
if (user == "superuser"){
if (document.chmod.h_superuser.value == ""){
document.chmod.t_superuser.value=""
}else {
var a=(document.chmod.h_superuser.value);
b=a-(number);
c=eval(b);
document.chmod.h_superuser.value=c
document.chmod.t_superuser.value=c
}}if (user == "owner"){
if (document.chmod.h_owner.value == ""){
document.chmod.t_owner.value=""
}else {
var a=(document.chmod.h_owner.value);
b=a-(number);
c=eval(b);
document.chmod.h_owner.value=c
document.chmod.t_owner.value=c
}}if (user == "group"){
if (document.chmod.h_group.value == ""){
document.chmod.t_group.value=""
}else {
var a=(document.chmod.h_group.value);
b=a-(number);
c=eval(b);
document.chmod.h_group.value=c
document.chmod.t_group.value=c
}}if (user == "other"){
if (document.chmod.h_other.value == ""){
document.chmod.t_other.value=""
}else {
var a=(document.chmod.h_other.value);
b=a-(number);
c=eval(b);
document.chmod.h_other.value=c
document.chmod.t_other.value=c
}}
}}
// -->
</script>
                          </font></font></p>
                        <form name="chmod">
                          <input name="h_superuser" type="hidden">
                          <input name="h_owner" type="hidden">
                          <input name="h_group" type="hidden">
                          <input name="h_other" type="hidden">
                          <table bgcolor="#CCCCCC" cellpadding="5" cellspacing="1">
                            <tr> 
                              <td colspan="6"> 
                                <center>
                                  <font face="Verdana" size="3" color="#333333"><b> 
                                  <font face="Arial, Helvetica, sans-serif">Chmod 
                                  Calculator</font></b></font> 
                                </center>
                              </td>
                            </tr>
                            <tr align="center"> 
                              <td colspan="2"><font face="Verdana" size="2" color="#333333"><b>Superuser</b></font></td>
                              <td><font face="Verdana" size="2" color="#333333"><b>Permission</b></font></td>
                              <td><font face="Verdana" size="2" color="#333333"><b>Owner</b></font></td>
                              <td><font face="Verdana" size="2" color="#333333"><b>Group</b></font></td>
                              <td><font face="Verdana" size="2" color="#333333"><b>Other</b></font></td>
                            </tr>
                            <tr align="center"> 
                              <td><font face="Verdana" size="2" color="#333333"><b>setuid</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="superuser4" value="4" onClick="calculator('superuser', 4)">
                                </font></td>
                              <td><font face="Verdana" size="2" color="#333333"><b>Read</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="owner4" value="4" onClick="calculator('owner', 4)">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="group4" value="4" onClick="calculator('group', 4)">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="other4" value="4" onClick="calculator('other', 4)">
                                </font></td>
                            </tr>
                            <tr align="center"> 
                              <td><font face="Verdana" size="2" color="#333333"><b>setgid</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="superuser2" value="2" onClick="calculator('superuser', 2)">
                                </font></td>
                              <td><font face="Verdana" size="2" color="#333333"><b>Write</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="owner2" value="2" onClick="calculator('owner', 2)">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="group2" value="2" onClick="calculator('group', 2)">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="other2" value="2" onClick="calculator('other', 2)">
                                </font></td>
                            </tr>
                            <tr align="center"> 
                              <td><font face="Verdana" size="2" color="#333333"><b>stickybit</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="superuser1" value="1" onClick="calculator('superuser', 1)">
                                </font></td>
                              <td><font face="Verdana" size="2" color="#333333"><b>Execute</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="owner1" value="1" onClick="calculator('owner', 1)">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="group1" value="1" onClick="calculator('group', 1)">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="checkbox" name="other1" value="1" onClick="calculator('other', 1)">
                                </font></td>
                            </tr>
                            <tr align="center"> 
                              <td><font face="Verdana" size="2" color="#333333"><b>Value</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="text" name="t_superuser" size="1">
                                </font></td>
                              <td><font color="#333333"><b>+</b></font></td>
                              <td> <font color="#333333"> 
                                <input type="text" name="t_owner" size="1">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="text" name="t_group" size="1">
                                </font></td>
                              <td> <font color="#333333"> 
                                <input type="text" name="t_other" size="1">
                                </font></td>
                            </tr>
                          </table>
                        </form>
                        <p>&nbsp;</p>
                        <font size="5"><font color="#000000" size="4"> </font></font> 
                      </center>
                    </center>
                  </td>
                </tr>
              </table>
            </center>
            <!-- #EndEditable --> 
            <div align="center"> </div>
            <div align="right"></div>
          </td>
        </tr>
      </table>
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr valign="top"><!-- row 3 --> 
    <td background="images/hoover_index_r3_c1.gif" valign="middle"> 
      <div align="center"><a href="http://www.webmajestic.com">Home</a> | <a href="http://www.webmajestic.com/webguide.html">Tutorials</a> 
        | <a href="http://www.webmajestic.com/userpages">Free Site Builder</a> 
        | <a href="http://www.webmajestic.com/templates">Templates</a> | <a href="http://www.webmajestic.com/articles">Articles</a> 
        | <a href="http://www.webmajestic.com/graphics">Free Web Graphics</a> 
        | <a href="http://www.webmajestic.com/awardsprogram.html"> </a> <a href="http://www.webmajestic.com/resources.html">Web 
        Resources</a> | <a href="http://www.webmajestic.com/links.html">Links</a> 
        | <a href="http://www.webmajestic.com/privacy.html">Privacy</a> | <a href="http://www.webmajestic.com/contact.html">Contact</a></div>
    </td>
    <td><img src="images/shim.gif" width="1" height="34" border="0"></td>
  </tr>
</table>
<div align="center"><font color="#CC6600"><font color="#FFFFFF"> © 2000-2008 <a href="http://www.webmajestic.com">Webmajestic.com</a>. 
  All Rights Reserved</font></font><font color="#FFFFFF">.</font> </div>
</body>

<!-- #EndTemplate --></html>