<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ong Map Blog</title>
	<atom:link href="http://ongmap.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ongmap.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 29 Jul 2010 03:25:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ongmap.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0cbeff0a07cd8de40afa5f67a1ccc186?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ong Map Blog</title>
		<link>http://ongmap.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ongmap.wordpress.com/osd.xml" title="Ong Map Blog" />
	<atom:link rel='hub' href='http://ongmap.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The Icacls.exe utility is available for Windows Server 2003 SP 2</title>
		<link>http://ongmap.wordpress.com/2010/07/29/the-icacls-exe-utility-is-available-for-windows-server-2003-sp-2/</link>
		<comments>http://ongmap.wordpress.com/2010/07/29/the-icacls-exe-utility-is-available-for-windows-server-2003-sp-2/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 03:25:44 +0000</pubDate>
		<dc:creator>dinosg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ongmap.wordpress.com/?p=31</guid>
		<description><![CDATA[This article describes the Icacls.exe command-line utility. You can use this utility to modify NTFS file system permissions on a computer that is running Microsoft Windows Server 2003 with Service Pack 2 (SP2). Currently, you can use the Xcacls.exe utility, the Cacls.exe utility, and the Xcacls.vbs utility to modify NTFS permissions in Windows Server 2003. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=31&subd=ongmap&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div>This article describes the Icacls.exe command-line utility. You can use this utility to modify NTFS file system permissions on a computer that is running Microsoft Windows Server 2003 with Service Pack 2 (SP2).</p>
<p>Currently, you can use the Xcacls.exe utility, the Cacls.exe utility, and the Xcacls.vbs utility to modify NTFS permissions in Windows Server 2003. The Icacls.exe utility is an alternative option for modifying NTFS permissions. The Icacls.exe utility resolves various issues that occur when you use the existing utilities.</p>
<p>The Icacls.exe utility is included in Windows Vista and in Windows Server 2003 SP2.</p>
<div><a href="http://support.microsoft.com/kb/919240/en-us#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
</div>
<h2 id="tocHeadRef"><a href="http://support.microsoft.com/kb/919240/en-us">MORE INFORMATION</a></h2>
<div>To install the Icacls.exe utility, install the latest service pack for Windows Server 2003. For more information about how to install the latest service pack for Windows Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:</p>
<div><a href="http://support.microsoft.com/kb/889100/">889100</a> How to obtain the latest service pack for Windows Server 2003</div>
<div><a href="http://support.microsoft.com/kb/919240/en-us#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3 id="tocHeadRef">Syntax for the Icacls.exe utility</h3>
<p>To see the following syntax information, type icacls.exe /? at a command prompt.</p>
<div>
<div><code></p>
<pre>ICACLS name /save aclfile [/T] [/C]
    store the acls for all matching names into aclfile for
    later use with /restore.

ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile [/C]
    applies the stored acls to files in directory.

ICACLS name /setowner user [/T] [/C]
    changes the owner of all matching names.

ICACLS name /findsid Sid [/T] [/C]
    finds all matching names that contain an ACL
    explicitly mentioning Sid.

ICACLS name /verify [/T] [/C]
    finds all files whose ACL is not in canonical form or whose
    lengths are inconsistent with ACE counts.

ICACLS name /resize [/T] [/C] [/L]
    changes incorrect recorded lengths of ACLs to true lengths.

ICACLS name /reset [/T] [/C]
    replaces acls with default inherited acls for all matching files.

ICACLS name [/grant[:r] Sid:perm[...]]
       [/deny Sid:perm [...]]
       [/remove[:g|:d]] Sid[...]] [/T] [/C]

    /grant[:r] Sid:perm grants the specified user access rights. With :r,
        the permissions replace any previously granted explicit permissions.
        Without :r, the permissions are added to any previously granted
        explicit permissions.

    /deny Sid:perm explicitly denies the specified user access rights.
        An explicit deny ACE is added for the stated permissions and
        the same permissions in any explicit grant are removed.

    /remove[:[g|d]] Sid removes all occurrences of Sid in the acl. With
        :g, it removes all occurrences of granted rights to that Sid. With
        :d, it removes all occurrences of denied rights to that Sid.

Note:
    Sids may be in either numeric or friendly name form. If a numeric
    form is given, affix a * to the start of the SID.

    /T indicates that this operation is performed on all matching
        files/directories below the directories specified in the name.

    /C indicates that this operation will continue on all file errors.
        Error messages will still be displayed.

    ICACLS preserves the canonical ordering of ACE entries:
            Explicit denials
            Explicit grants
            Inherited denials
            Inherited grants

    perm is a permission mask and can be specified in one of two forms:
        a sequence of simple rights:
                F - full access
                M - modify access
                RX - read and execute access
                R - read-only access
                W - write-only access
        a comma-separated list in parentheses of specific rights:
                D - delete
                RC - read control
                WDAC - write DAC
                WO - write owner
                S - synchronize
                AS - access system security
                MA - maximum allowed
                GR - generic read
                GW - generic write
                GE - generic execute
                GA - generic all
                RD - read data/list directory
                WD - write data/add file
                AD - append data/add subdirectory
                REA - read extended attributes
                WEA - write extended attributes
                X - execute/traverse
                DC - delete child
                RA - read attributes
                WA - write attributes
        inheritance rights may precede either form and are applied
        only to directories:
                (OI) - object inherit
                (CI) - container inherit
                (IO) - inherit only
                (NP) - don't propagate inherit

Examples:

        icacls c:\windows\* /save AclFile /T
        - Will save the ACLs for all files under c:\windows
          and its subdirectories to AclFile.

        icacls c:\windows\ /restore AclFile
        - Will restore the Acls for every file within
          AclFile that exists in c:\windows and its subdirectories

        icacls file /grant Administrator:(D,WDAC)
        - Will grant the user Administrator Delete and Write DAC
          permissions to file

        icacls file /grant *S-1-1-0:(D,WDAC)
        - Will grant the user defined by sid S-1-1-0 Delete and
          Write DAC permissions to file</pre>
<p></code></div>
</div>
<div><a href="http://support.microsoft.com/kb/919240/en-us#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3 id="tocHeadRef">Other available utilities to modify NTFS permissions</h3>
<p>For more information about other utilities that you can use to modify NTFS permissions, click the following article numbers to view the articles in the Microsoft Knowledge Base:</p>
<div><a href="http://support.microsoft.com/kb/318754/">318754</a> How to use Xcacls.exe to modify NTFS permissions</div>
<div><a href="http://support.microsoft.com/kb/135268/">135268</a> How to use Cacls.exe in a batch file</div>
<div><a href="http://support.microsoft.com/kb/825751/">825751</a> How to use Xcacls.vbs to modify NTFS permissions</div>
<div><a href="http://support.microsoft.com/kb/919240/en-us#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ongmap.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ongmap.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ongmap.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ongmap.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ongmap.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ongmap.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ongmap.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ongmap.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ongmap.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ongmap.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=31&subd=ongmap&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ongmap.wordpress.com/2010/07/29/the-icacls-exe-utility-is-available-for-windows-server-2003-sp-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/26b27f645b1c4af51c0a6fde91830a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinosg</media:title>
		</media:content>

		<media:content url="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" medium="image" />

		<media:content url="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" medium="image" />

		<media:content url="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" medium="image" />

		<media:content url="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" medium="image" />
	</item>
		<item>
		<title>How to use Xcacls.vbs to modify NTFS permissions</title>
		<link>http://ongmap.wordpress.com/2010/07/29/how-to-use-xcacls-vbs-to-modify-ntfs-permissions/</link>
		<comments>http://ongmap.wordpress.com/2010/07/29/how-to-use-xcacls-vbs-to-modify-ntfs-permissions/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 02:42:36 +0000</pubDate>
		<dc:creator>dinosg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ongmap.wordpress.com/?p=28</guid>
		<description><![CDATA[There is an updated version of the Extended Change Access Control List tool (Xcacls.exe) that is available as a Microsoft Visual Basic script (Xcacls.vbs) from Microsoft. This step-by-step article describes how to use the Xcacls.vbs script to modify and to view NTFS file system permissions for files or for folders. You can use Xcacls.vbs from the command line to set all the file system security options that are accessible in Microsoft Windows Explorer. Xcacls.vbs displays and modifies the access control lists (ACLs) of files.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=28&subd=ongmap&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div></div>
<div>There is an updated version of the Extended Change Access Control List tool (Xcacls.exe) that is available as a Microsoft Visual Basic script (Xcacls.vbs) from Microsoft. This step-by-step article describes how to use the Xcacls.vbs script to modify and to view NTFS file system permissions for files or for folders. You can use Xcacls.vbs from the command line to set all the file system security options that are accessible in Microsoft Windows Explorer. Xcacls.vbs displays and modifies the access control lists (ACLs) of files.</p>
<p><strong>Note</strong> Xcacls.vbs is only compatible with Microsoft Windows 2000, with Microsoft Windows XP, and with Microsoft Windows Server 2003. Xcacls.vbs is not supported by Microsoft.
</div>
<div>
<div><a href="http://support.microsoft.com/kb/825751#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
</div>
<div>
<h4 id="tocHeadRef"><a id="2">Set Up and Use Xcacls.vbs</a></h4>
<p>To set up and to use Xcacls.vbs, follow these steps:</p>
<ol>
<li>Obtain the latest version of Xcacls.vbs from the following Microsoft Web site:
<div><a href="http://download.microsoft.com/download/f/7/8/f786aaf3-a37b-45ab-b0a2-8c8c18bbf483/xcacls_installer.exe">http://download.microsoft.com/download/f/7/8/f786aaf3-a37b-45ab-b0a2-8c8c18bbf483/XCacls_Installer.exe</a></div>
</li>
<li>Double-click <strong>Xcacls_Installer.exe</strong>. When you are prompted for a location to place the extracted files, specify a folder that is in your computer&#8217;s search-path setting, such as C:\Windows.</li>
<li>Change the default scripting engine from Wscript to Cscript. (The Xcacls.vbs script works best in Cscript.) To do this, type the following at a command prompt, and then press ENTER:
<div>cscript.exe /h:cscript</div>
<p><strong>Note</strong> Changing the default scripting engine to Cscript only affects how scripts write to the screen. Wscript writes each line individually to an <strong>OK</strong> dialog box. Cscript writes each line to the command window. If you do not want to change the default scripting engine, you must run the script by using the following command</p>
<div>cscript.exe xcacls.vbs</div>
<p>whereas if you change the default to Cscript, you can run the script with the following command:</p>
<div>xcacls.vbs</div>
<p>.</li>
<li>To see the Xcacls.vbs command syntax, type the following at a command prompt:
<div>xcacls.vbs /?</div>
</li>
</ol>
<h4 id="tocHeadRef"><a id="3">Syntax for the Xcacls.vbs Command</a></h4>
<p>The following output of the <strong>xcacls.vbs /?</strong> command describes the Xcacls.vbs command syntax:</p>
<div>
<div>
<pre>Usage:
XCACLS filename [/E] [/G user:perm;spec] [...] [/R user [...]]
                [/F] [/S] [/T]
                [/P user:perm;spec [...]] [/D user:perm;spec] [...]
                [/O user] [/I ENABLE/COPY/REMOVE] [/N
                [/L filename] [/Q] [/DEBUG]

   filename            [Required] If used alone, it displays ACLs.
                       (Filename can be a filename, directory name or
                       wildcard characters and can include the whole
                       path. If path is missing, it is assumed to be
                       under the current directory.)
                       Notes:
                       - Put filename in quotes if it has spaces or
                       special characters such as &amp;, $, #, etc.
                       - If filename is a directory, all files and
                       subdirectories under it will NOT be changed
                       unless the /F or S is present.

   /F                  [Used with Directory or Wildcard] This will change all
                       files under the inputted directory but will NOT
                       traverse subdirectories unless /T is also present.
                       If filename is a directory, and /F is not used, no
                       files will be touched.

   /S                  [Used with Directory or Wildcard] This will change all
                       subfolders under the inputted directory but will NOT
                       traverse subdirectories unless /T is also present.
                       If filename is a directory, and /S is not used, no
                       subdirectories will be touched.

   /T                  [Used only with a Directory] Traverses each
                       subdirectory and makes the same changes.
                       This switch will traverse directories only if the
                       filename is a directory or is using wildcard characters.
   /E                  Edit ACL instead of replacing it.

   /G user:GUI         Grant security permissions similar to Windows GUI
                       standard (non-advanced) choices.
   /G user:Perm;Spec   Grant specified user access rights.
                       (/G adds to existing rights for user)

                       User: If User has spaces in it, enclose it in quotes.
                             If User contains #machine#, it will replace
                             #machine# with the actual machine name if it is a
                             non-domain controller, and replace it with the
                             actual domain name if it is a domain controller.

                             New to 3.0: User can be a string representing
                             the actual SID, but MUST be lead by SID#
                             Example: SID#S-1-5-21-2127521184-160...
                                      (SID string shown has been shortened)
                                      (If any user has SID# then globally all
                                       matches must match the SID (not name)
                                       so if your intention is to apply changes
                                       to all accounts that match Domain\User
                                       then do not specify SID# as one of the
                                       users.)

                       GUI: Is for standard rights and can be:
                             Permissions...
                                    F  Full control
                                    M  Modify
                                    X  read and eXecute
                                    L  List folder contents
                                    R  Read
                                    W  Write
                             Note: If a ; is present, this will be considered
                             a Perm;Spec parameter pair.

                       Perm: Is for "Files Only" and can be:
                             Permissions...
                                    F  Full control
                                    M  Modify
                                    X  read and eXecute
                                    R  Read
                                    W  Write
                             Advanced...
                                    D  Take Ownership
                                    C  Change Permissions
                                    B  Read Permissions
                                    A  Delete
                                    9  Write Attributes
                                    8  Read Attributes
                                    7  Delete Subfolders and Files
                                    6  Traverse Folder / Execute File
                                    5  Write Extended Attributes
                                    4  Read Extended Attributes
                                    3  Create Folders / Append Data
                                    2  Create Files / Write Data
                                    1  List Folder / Read Data
                       Spec is for "Folder and Subfolders only" and has the
                       same choices as Perm.

   /R user             Revoke specified user's access rights.
                       (Will remove any Allowed or Denied ACL's for user.)

   /P user:GUI         Replace security permissions similar to standard choices.

   /P user:perm;spec   Replace specified user's access rights.
                       For access right specification see /G option.
                       (/P behaves like /G if there are no rights set for user.)

   /D user:GUI         Deny security permissions similar to standard choices.
   /D user:perm;spec   Deny specified user access rights.
                       For access right specification see /G option.
                       (/D adds to existing rights for user.)

   /O user             Change the Ownership to this user or group.

   /I switch           Inheritance flag.  If omitted, the default is to not touch
                       Inherited ACL's. Switch can be:
                          ENABLE - This will turn on the Inheritance flag if
                                   it is not on already.
                          COPY   - This will turn off the Inheritance flag and
                                   copy the Inherited ACL's
                                   into Effective ACL's.
                          REMOVE - This will turn off the Inheritance flag and
                                   will not copy the Inherited
                                   ACL's.  This is the opposite of ENABLE.
                          If switch is not present, /I will be ignored and
                          Inherited ACL's will remain untouched.

   /L filename         Filename for Logging. This can include a path name
                       if the file is not under the current directory.
                       File will be appended to, or created if it does not
                       exit. Must be Text file if it exists or error will occur.

                       If filename is omitted, the default name of XCACLS will
                       be used.

   /Q                  Turn on Quiet mode.  By default, it is off.
                       If it is turned on, there will be no display to the screen.

   /DEBUG              Turn on Debug mode. By default, it is off.
                       If it is turned on, there will be more information
                       displayed and/or logged. Information will show
                       Sub/Function Enter and Exit as well as other important
                       information.

   /SERVER servername  Enter a remote server to run script against.

   /USER username      Enter Username to impersonate for Remote Connections
                            (requires PASS switch).  Will be ignored if it is for a Local Connection.

   /PASS password      Enter Password to go with USER switch
                            (requires USER switch).

Wildcard characters can be used to specify more than one file in a command, such as:
                                *       Any string of zero or more characters
                                ?       Any single character

You can specify more than one user in a command.
You can combine access rights.</pre>
</div>
</div>
<h4 id="tocHeadRef"><a id="4">Use Xcacls.vbs to View Permissions</a></h4>
<p>You can also use Xcacls.vbs to view permissions for files or folders. For example, if you have a folder that is named C:\Test, type the following at a command prompt to view the folder permissions, and then press ENTER:</p>
<div>xcacls.vbs c:\test</div>
<p>The following example is a typical result:</p>
<div>
<div>
<pre>C:\&gt;XCACLS.VBS c:\test
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Starting XCACLS.VBS (Version: 3.4) Script at 6/11/2003 10:55:21 AM

Startup directory:
"C:\test"

Arguments Used:
        Filename = "c:\test"

**************************************************************************
Directory: C:\test

Permissions:
Type     Username                Permissions           Inheritance

Allowed  BUILTIN\Administrators  Full Control          This Folder, Subfolde
Allowed  NT AUTHORITY\SYSTEM     Full Control          This Folder, Subfolde
Allowed  Domain1\User1           Full Control          This Folder Only
Allowed  \CREATOR OWNER          Special (Unknown)     Subfolders and Files
Allowed  BUILTIN\Users           Read and Execute      This Folder, Subfolde
Allowed  BUILTIN\Users           Create Folders / Appe This Folder and Subfo
Allowed  BUILTIN\Users           Create Files / Write  This Folder and Subfo

No Auditing set

Owner: Domain1\User1</pre>
</div>
</div>
<p><strong>Note</strong> The output of the <strong>xcacls.vbs c:\test</strong> command in this example matches the text that is shown in the graphical user interface (GUI). Some words are incomplete in the command window.</p>
<p>The output also gives the version of the script, the startup directory, and the arguments that were used.</p>
<p>You can also use wildcard characters to display matching files under the directory. For example, if you type the following, all files with an extension of &#8220;.log&#8221; that are in the C:\Test folder are displayed:</p>
<div>xcacls.vbs c:\test\*.log</div>
<h4 id="tocHeadRef"><a id="5">Examples</a></h4>
<p>The following Xcacls.vbs commands provide some examples of Xcacls.vbs usage.</p>
<p><strong>xcacls.vbs c:\test\ /g domain\testuser1:f /f /t /e</strong></p>
<div>This command edits existing permissions. It grants Domain\TestUser1 full control on all files under C:\Test, it traverses subfolders under C:\Test, and then it changes any files that are found. This command does not touch directories.</div>
<p><strong>xcacls.vbs c:\test\ /g domain\testuser1:f /s /l &#8220;c:\xcacls.log&#8221;</strong></p>
<div>This command replaces existing permissions. It grants Domain\TestUser1 full control on all subfolders under C:\Test, and it logs to C:\Xcacls.log. This command does not touch files, and it does not traverse directories.</div>
<p><strong>xcacls.vbs c:\test\readme.txt /o &#8220;machinea\group1&#8243;</strong></p>
<div>This command changes the owner of Readme.txt to be the group MachineA\Group1.</div>
<p><strong>xcacls.vbs c:\test\badcode.exe /r &#8220;machinea\group1&#8243; /r &#8220;domain\testuser1&#8243;</strong></p>
<div>This command revokes the permissions to C:\Test\Badcode.exe for MachineA\Group1 and for Domain\TestUser1.</div>
<p><strong>xcacls.vbs c:\test\subdir1 /i enable /q</strong></p>
<div>This command turns on inheritance on the folder C:\Test\Subdir1. It suppresses any screen output.</div>
<p><strong>xcacls.vbs \\servera\sharez\testpage.htm /p &#8220;domain\group2&#8243;:14</strong></p>
<div>This command remotely connects to \\ServerA\ShareZ by using Windows Management Instrumentation (WMI). It then obtains the local path for that share, and under that path, it changes the permissions on Testpage.htm. It leaves the existing permissions of Domain\Group2 intact, but it adds permissions 1 (read data) and 4 (read extended attributes). The command drops other permissions on the file because the <strong>/e</strong> switch was not used.</div>
<p><strong>xcacls.vbs d:\default.htm /g &#8220;domain\group2&#8243;:f /server servera /user servera\admin /pass <var>password</var> /e</strong></p>
<div>This command uses WMI to remotely connect as ServerA\Admin to ServerA and then grants full permissions on Default.htm to Domain\Group2. Existing permissions for Domain\Group2 are lost and other permissions on the file remain.</div>
<p><a id="Ref"></a></p>
<div><a href="http://support.microsoft.com/kb/825751#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
</div>
<h2 id="tocHeadRef"><a href="http://support.microsoft.com/kb/825751">REFERENCES</a></h2>
<div>For additional information about how to use Xcacls.exe, click the following article number to view the article in the Microsoft Knowledge Base:</p>
<div><a href="http://support.microsoft.com/kb/318754/">318754</a> How to use Xcacls.exe to modify NTFS permissions</div>
<div><a href="http://support.microsoft.com/kb/825751#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ongmap.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ongmap.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ongmap.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ongmap.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ongmap.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ongmap.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ongmap.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ongmap.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ongmap.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ongmap.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=28&subd=ongmap&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ongmap.wordpress.com/2010/07/29/how-to-use-xcacls-vbs-to-modify-ntfs-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/26b27f645b1c4af51c0a6fde91830a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinosg</media:title>
		</media:content>

		<media:content url="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" medium="image" />

		<media:content url="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" medium="image" />

		<media:content url="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" medium="image" />
	</item>
		<item>
		<title>INSTALL Monit for Monitor System</title>
		<link>http://ongmap.wordpress.com/2010/07/29/install-monit-for-monitor-system/</link>
		<comments>http://ongmap.wordpress.com/2010/07/29/install-monit-for-monitor-system/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 02:39:43 +0000</pubDate>
		<dc:creator>dinosg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ongmap.wordpress.com/?p=10</guid>
		<description><![CDATA[Monit is a free open source util ity for man ag ing and mon i tor ing, processes, files, direc to ries and filesys tems on a UNIX sys tem. Monit con ducts auto matic main te nance and repair and can exe cute mean ing ful causal actions in error situations.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=10&subd=ongmap&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div id="post-139">
<div>
<h1><span style="font-weight:normal;font-size:13px;">I/INTRO</span></h1>
</div>
<div>
<p>Monit is a free open source util ity for man ag ing and mon i tor ing, processes, files, direc to ries and filesys tems on a UNIX sys tem. Monit con ducts auto matic main te nance and repair and can exe cute mean ing ful causal actions in error situations.</p>
<p>II/INSTALL</p>
<p>Step 1:Install monit</p>
<p>#wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6 – 1.el5.rf.i386.rpm<br />
#rpm –Uvh rpmforge-release-0.3.6 – 1.el5.rf.i386.rpm<br />
#yum install monit<br />
#chk con fig –lev els 235 monit on</p>
<p>Step 2:Config Monit</p>
<p>edit /etc/moni.d/monitrc</p>
<pre>set daemon  60
set logfile syslog facility log_daemon
set mailserver localhost #mail server
set mail-format { from: monit@server1.example.com }
set alert root@localhost #alert to admin with email adrress root@localhost
set httpd port 2812 and
  SSL ENABLE
  PEMFILE  /var/certs/monit.pem
  allow admin:test</pre>
<p>some fea tures exam ple of monit</p>
<p>*check host CUIBAP with address 19.16.12.32<br />
if failed icmp type echo with time out 20 sec onds then alert<br />
(check host if over 20 sec ond it will alert mail to admin)</p>
<p>*check host CONHEO with address 132.163.193.3<br />
if failed port 25 with time out 30 sec onds then alert<br />
(check Ser vice SMTP if over 30 sec ond it will alert mail to admin)</p>
<p>*check process sshd with pid file /var/run/sshd.pid<br />
start pro gram “/etc/init.d/sshd start“<br />
stop pro gram “/etc/init.d/sshd stop“<br />
if failed port 22 pro to col ssh then restart<br />
if failed port 22 pro to col ssh then alert<br />
if 5 restarts within 5 cycles then time out<br />
(check Ser vice SSH if it down monit auto start only run in localhost)</p>
<p>Step 3:access monit via web mail port 2812</p>
<h6>copy from conheotiensinh</h6>
</div>
<div>
<div><a title="Comment on INSTALL Monit for Monitor System" href="http://ongmap.net/?p=139#respond">No Comments</a></div>
</div>
</div>
<div id="post-134">
<div>
<div>22</p>
<div>Sep</div>
</div>
<h1><a title="Permanent Link to LOAD BALANCE AND CLUSTER FAILOVER WEBSERVER(INBOUND)USE PFSENSE" rel="bookmark" href="http://ongmap.net/?p=134">LOAD BALANCE AND CLUSTER FAILOVER WEBSERVER(INBOUND)USE PFSENSE</a></h1>
<p>Posted by: admin</p>
</div>
<div>
I/Intro<strong> </strong></p>
<p><strong> </strong><strong>pfSense</strong> is a FreeBSD-based fire wall tai lored for use as a fire wall and router. The project started in 2004 as a fork of the m0n0wall project, but focused towards full PC instal la tions rather than the embed ded hard ware focus of m0n0wall.</p>
<h2>Com mon Deployments</h2>
<p>Although mainly deployed as a perime ter fire wall, pfSense is ver sa tile enough to fill many types of deploy ments. Here is a short list of com mon deployments:</p>
<ul>
<li>Perime ter Fire wall — As dis cused ear lier, this is by far the most com mon deploy ment for pfSense.</li>
<li>Router — Due to the abil ity to load bal ance con nec tions and pro vide failover capa bil i ties, pfSense makes for an ideal choice for a DIY Router for the SMB market.</li>
<li>Wire less Access Point — With the abil ity of Cap tive Por tal within it, pfSense can eas ily be deployed as a wire less hotspot solution.</li>
<li>Spe cial pur pose appli ance — Some users have decided to uti lize pfSense in a unique way to help ful fill their unique needs.
<ul>
<li>VPN Appli ance</li>
<li>Snif fer Appliance</li>
<li>Ded i cated DHCP server</li>
<li>Ded i cated DNS server</li>
</ul>
</li>
</ul>
<h2>Fea tures</h2>
<p>pfSense includes almost all the fea tures in expen sive com mer cial fire walls, and more in many cases. Here is a list of fea tures taken from the <a title="http://www.pfsense.org/index.php?option=com_content&amp;task=view&amp;id=40&amp;Itemid=43" rel="nofollow" href="http://www.pfsense.org/index.php?option=com_content&amp;task=view&amp;id=40&amp;Itemid=43" target="_top">pfSense Fea tures page</a>.</p>
<ul>
<li>Fire wall</li>
<li>State Table</li>
<li>NAT</li>
<li>Redun dancy
<ul>
<li>CARP- CARP from OpenBSD allows for hard ware failover. Two or more fire walls can be con fig ured as a failover group. If one inter face fails on the pri mary or the pri mary goes offline entirely, the sec ondary becomes active. pfSense also includes con fig u ra tion syn chro niza tion capa bil i ties, so you make your con fig u ra tion changes on the pri mary and they auto mat i cally syn chro nize to the sec ondary firewall.</li>
<li>pfsync — pfsync ensures the firewall’s state table is repli cated to all failover con fig ured fire walls. This means your exist ing con nec tions will be main tained in the case of fail ure, which is impor tant to pre vent net work disruptions.</li>
</ul>
</li>
<li>Out bound and Inbound load balancing</li>
<li>VPN — IPsec, Open VPN, PPTP</li>
<li>PPPoE Server</li>
<li>RRD Graphs Reporting</li>
<li>Real Time Infor ma tion — Using AJAX</li>
<li>Dynamic DNS</li>
<li>Cap tive portal</li>
<li>DHCP Server and Relay</li>
<li>Live CD Ver sion Avail able</li>
</ul>
<p>II/INSTALL<br />
<a href="http://ongmap.files.wordpress.com/2010/07/5.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/5.jpg?w=238" border="0" alt="" /></a></p>
<p>Step 1:Install Pfsense from CD</p>
<p>Step 2:enable vlan or no(I choose “no”)</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/1.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/1.jpg?w=300" border="0" alt="" /></a>Step 3:enter the lan inter face name</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/2.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/2.jpg?w=300" border="0" alt="" /></a><br />
Step 4:enter the wan inter face name</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/3.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/3.jpg?w=300" border="0" alt="" /></a>Step 5: enter</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/4.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/4.jpg?w=300" border="0" alt="" /></a>Step 6 type “y”</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/51.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/51.jpg?w=300" border="0" alt="" /></a><br />
Step 7: setup ip adr ress as Dia gram<br />
III/LOAD BALANCE WEB</p>
<p>Step 8:Set up Load Bal anc ing Pool</p>
<p>The first thing to do is cre ate a pool (<strong>Ser vices</strong> &gt; <strong>Load Bal ancer</strong> &gt; <strong>Add</strong>).</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/6.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/6.jpg?w=300" border="0" alt="" /></a>Step 9:Set up vir tual server</p>
<p>Adding a new Vir tual Server (Ser vices &gt; Load bal ancer &gt; Vir tual Servers &gt; Add )</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/7.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/7.jpg?w=300" border="0" alt="" /></a><br />
Step 10: Set up vir tual ip address</p>
<p>Adding a new Vir tual IP (Fire wall &gt; Vir tual IPs &gt; Add )</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/8.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/8.jpg?w=300" border="0" alt="" /></a><br />
Step 11:Create Nat(Firewall &gt; Nat &gt; Add)</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/9.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/9.jpg?w=300" border="0" alt="" /></a>Note: open port 80 from Inter net access to 192.168.0.5 and 192.168.0.6</p>
<p>Step 12:Access to <img src="/DOCUME~1/quan.hoa/LOCALS~1/Temp/moz-screenshot-1.png" alt="" />http://192.168.20.204/ and check sta tus load balance</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/10.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/10.jpg?w=300" border="0" alt="" /></a></p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/11.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/11.jpg?w=300" border="0" alt="" /></a></p>
<p>Step 13:Disconnect 192.168.0.5 Access to http://192.168.20.204/ and check sta tus load balance</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/12.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/12.jpg?w=300" border="0" alt="" /></a><br />
<a href="http://ongmap.files.wordpress.com/2010/07/13.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/13.jpg?w=300" border="0" alt="" /></a>IV/CLUSTER FAILOVER</p>
<p>As LOAD bal ance but choose Failover</p>
<p><a href="http://ongmap.files.wordpress.com/2010/07/14.jpg" target="_top"><img src="http://ongmap.files.wordpress.com/2010/07/14.jpg?w=300" border="0" alt="" /></a>Besides pfsense can cre ate clus ter fail over fire wall and load bal ance outbound</p>
</div>
<div>
<div><a title="Comment on LOAD BALANCE AND CLUSTER FAILOVER WEBSERVER(INBOUND)USE PFSENSE" href="http://ongmap.net/?p=134#respond">No Comments</a></div>
</div>
</div>
<div id="post-106">
<div>
<div>24</p>
<div>Jul</div>
</div>
<h1><a title="Permanent Link to Install RRDTool on Red Hat Enterprise Linux / CentOS" rel="bookmark" href="http://ongmap.net/?p=106">Install RRDTool on Red Hat Enterprise Linux / CentOS</a></h1>
<p>Posted by: admin</p>
</div>
<div>
<p>Q. I’ve down loaded RRD Tool pack age called rrdtool-1.3.1.tar.gz. But ./configure com mand giv ing out lots of error mes sages. How do I install RRD Tool on Red Hat Enter prise Linux 5.x — 64 bit version?</p>
<p>A. RRD is the Acronym for Round Robin Data base. RRD is a sys tem to store and dis play time-series data (i.e. net work band width, machine-room tem per a ture, server load aver age). It stores the data in a very com pact way that will not expand over time, and it presents use ful graphs by pro cess ing the data to enforce a cer tain data den sity. It can be used either via sim ple wrap per scripts (from shell or Perl) or via fron tends that poll net work devices and put a friendly user inter face on it.</p>
<h2>Installing RRD Tool on RHEL</h2>
<p>In order to install RRD Tool on Red Hat Enter prise Linux / Cen tOS Linux 64 bit ver sion you need to install few devel op ment tools and libraries.</p>
<h2>Step # 1: Install required dependencies</h2>
<p>Login as root and type the fol low ing com mand:<br />
<code># yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel </code><br />
Sam ple output:</p>
<pre>Loading "rhnplugin" plugin
Loading "security" plugin
rhel-x86_64-server-vt-5   100% |=========================| 1.4 kB    00:00
rhn-tools-rhel-x86_64-ser 100% |=========================| 1.2 kB    00:00
rhel-x86_64-server-5      100% |=========================| 1.4 kB    00:00
Setting up Install Process
Parsing package install arguments
Package libxml2-devel - 2.6.26-2.1.2.1.x86_64 is already installed.
Package libxml2-devel - 2.6.26-2.1.2.1.i386 is already installed.
Package pango - 1.14.9-3.el5.i386 is already installed.
Package pango - 1.14.9-3.el5.x86_64 is already installed.
Package freetype - 2.2.1-20.el5_2.i386 is already installed.
Package freetype - 2.2.1-20.el5_2.x86_64 is already installed.
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package libart_lgpl-devel.x86_64 0:2.3.17-4 set to be updated
---&gt; Package pango-devel.i386 0:1.14.9-3.el5 set to be updated
--&gt; Processing Dependency: libXft-devel for package: pango-devel
--&gt; Processing Dependency: libXrender-devel for package: pango-devel
--&gt; Processing Dependency: libXext-devel for package: pango-devel
--&gt; Processing Dependency: libX11-devel for package: pango-devel
--&gt; Processing Dependency: fontconfig-devel &gt;= 2.0 for package: pango-devel
---&gt; Package pango-devel.x86_64 0:1.14.9-3.el5 set to be updated
---&gt; Package freetype-devel.x86_64 0:2.2.1-20.el5_2 set to be updated
---&gt; Package libpng-devel.i386 2:1.2.10-7.1.el5_0.1 set to be updated
---&gt; Package cairo-devel.x86_64 0:1.2.4-5.el5 set to be updated
---&gt; Package libpng-devel.x86_64 2:1.2.10-7.1.el5_0.1 set to be updated
---&gt; Package cairo-devel.i386 0:1.2.4-5.el5 set to be updated
---&gt; Package libart_lgpl-devel.i386 0:2.3.17-4 set to be updated
--&gt; Processing Dependency: libart_lgpl_2.so.2 for package: libart_lgpl-devel
---&gt; Package freetype-devel.i386 0:2.2.1-20.el5_2 set to be updated
--&gt; Running transaction check
---&gt; Package libXrender-devel.i386 0:0.9.1-3.1 set to be updated
--&gt; Processing Dependency: xorg-x11-proto-devel for package: libXrender-devel
---&gt; Package libXft-devel.i386 0:2.1.10-1.1 set to be updated
---&gt; Package libX11-devel.i386 0:1.0.3-9.el5 set to be updated
--&gt; Processing Dependency: libXdmcp-devel for package: libX11-devel
--&gt; Processing Dependency: libXau-devel for package: libX11-devel
---&gt; Package fontconfig-devel.i386 0:2.4.1-7.el5 set to be updated
---&gt; Package libart_lgpl.i386 0:2.3.17-4 set to be updated
---&gt; Package libXext-devel.i386 0:1.0.1-2.1 set to be updated
--&gt; Running transaction check
---&gt; Package xorg-x11-proto-devel.i386 0:7.1-9.fc6 set to be updated
--&gt; Processing Dependency: mesa-libGL-devel for package: xorg-x11-proto-devel
---&gt; Package libXdmcp-devel.i386 0:1.0.1-2.1 set to be updated
---&gt; Package libXau-devel.i386 0:1.0.1-3.1 set to be updated
--&gt; Running transaction check
---&gt; Package mesa-libGL-devel.i386 0:6.5.1-7.5.el5 set to be updated
--&gt; Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 libart_lgpl-devel       x86_64     2.3.17-4         rhel-x86_64-server-5   21 k
 libart_lgpl-devel       i386       2.3.17-4         rhel-x86_64-server-5   21 k
 pango-devel             i386       1.14.9-3.el5     rhel-x86_64-server-5  280 k
 pango-devel             x86_64     1.14.9-3.el5     rhel-x86_64-server-5  281 k
Installing for dependencies:
 cairo-devel             x86_64     1.2.4-5.el5      rhel-x86_64-server-5  131 k
 cairo-devel             i386       1.2.4-5.el5      rhel-x86_64-server-5  130 k
 fontconfig-devel        i386       2.4.1-7.el5      rhel-x86_64-server-5  168 k
 freetype-devel          x86_64     2.2.1-20.el5_2   rhel-x86_64-server-5  151 k
 freetype-devel          i386       2.2.1-20.el5_2   rhel-x86_64-server-5  151 k
 libX11-devel            i386       1.0.3-9.el5      rhel-x86_64-server-5  665 k
 libXau-devel            i386       1.0.1-3.1        rhel-x86_64-server-5   11 k
 libXdmcp-devel          i386       1.0.1-2.1        rhel-x86_64-server-5  7.6 k
 libXext-devel           i386       1.0.1-2.1        rhel-x86_64-server-5   57 k
 libXft-devel            i386       2.1.10-1.1       rhel-x86_64-server-5   16 k
 libXrender-devel        i386       0.9.1-3.1        rhel-x86_64-server-5  8.9 k
 libart_lgpl             i386       2.3.17-4         rhel-x86_64-server-5   76 k
 libpng-devel            i386       2:1.2.10-7.1.el5_0.1  rhel-x86_64-server-5  182 k
 libpng-devel            x86_64     2:1.2.10-7.1.el5_0.1  rhel-x86_64-server-5  186 k
 mesa-libGL-devel        i386       6.5.1-7.5.el5    rhel-x86_64-server-5  465 k
 xorg-x11-proto-devel    i386       7.1-9.fc6        rhel-x86_64-server-5  247 k

Transaction Summary
=============================================================================
Install     20 Package(s)
Update       0 Package(s)
Remove       0 Package(s)         

Total download size: 3.2 M
Is this ok [y/N]: 

Downloading Packages:
(1/20): libXext-devel-1.0 100% |=========================|  57 kB    00:00
(2/20): freetype-devel-2. 100% |=========================| 151 kB    00:00
(3/20): libXau-devel-1.0. 100% |=========================|  11 kB    00:00
(4/20): libart_lgpl-devel 100% |=========================|  21 kB    00:00
(5/20): libart_lgpl-2.3.1 100% |=========================|  76 kB    00:00
(6/20): cairo-devel-1.2.4 100% |=========================| 130 kB    00:00
(7/20): libpng-devel-1.2. 100% |=========================| 186 kB    00:00
(8/20): cairo-devel-1.2.4 100% |=========================| 131 kB    00:00
(9/20): fontconfig-devel- 100% |=========================| 168 kB    00:00
(10/20): mesa-libGL-devel 100% |=========================| 465 kB    00:01
(11/20): libXdmcp-devel-1 100% |=========================| 7.6 kB    00:00
(12/20): libpng-devel-1.2 100% |=========================| 182 kB    00:00
(13/20): libX11-devel-1.0 100% |=========================| 665 kB    00:02
(14/20): freetype-devel-2 100% |=========================| 151 kB    00:00
(15/20): libXft-devel-2.1 100% |=========================|  16 kB    00:00
(16/20): pango-devel-1.14 100% |=========================| 281 kB    00:01
(17/20): pango-devel-1.14 100% |=========================| 280 kB    00:01
(18/20): libXrender-devel 100% |=========================| 8.9 kB    00:00
(19/20): libart_lgpl-deve 100% |=========================|  21 kB    00:00
(20/20): xorg-x11-proto-d 100% |=========================| 247 kB    00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: libart_lgpl                  ####################### [ 1/20]
  Installing: freetype-devel               ####################### [ 2/20]
  Installing: fontconfig-devel             ####################### [ 3/20]
  Installing: libpng-devel                 ####################### [ 4/20]
  Installing: libXau-devel                 ####################### [ 5/20]
  Installing: libart_lgpl-devel            ####################### [ 6/20]
  Installing: libart_lgpl-devel            ####################### [ 7/20]
  Installing: libpng-devel                 ####################### [ 8/20]
  Installing: freetype-devel               ####################### [ 9/20]
  Installing: xorg-x11-proto-devel         ####################### [10/20]
  Installing: libX11-devel                 ####################### [11/20]
  Installing: libXrender-devel             ####################### [12/20]
  Installing: libXft-devel                 ####################### [13/20]
  Installing: cairo-devel                  ####################### [14/20]
  Installing: libXext-devel                ####################### [15/20]
  Installing: pango-devel                  ####################### [16/20]
  Installing: pango-devel                  ####################### [17/20]
  Installing: libXdmcp-devel               ####################### [18/20]
  Installing: mesa-libGL-devel             ####################### [19/20]
  Installing: cairo-devel                  ####################### [20/20] 

Installed: libart_lgpl-devel.x86_64 0:2.3.17-4 libart_lgpl-devel.i386 0:2.3.17-4 pango-devel.i386 0:1.14.9-3.el5 pango-devel.x86_64 0:1.14.9-3.el5
Dependency Installed: cairo-devel.x86_64 0:1.2.4-5.el5 cairo-devel.i386 0:1.2.4-5.el5 fontconfig-devel.i386 0:2.4.1-7.el5 freetype-devel.x86_64 0:2.2.1-20.el5_2 freetype-devel.i386 0:2.2.1-20.el5_2 libX11-devel.i386 0:1.0.3-9.el5 libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1 libXext-devel.i386 0:1.0.1-2.1 libXft-devel.i386 0:2.1.10-1.1 libXrender-devel.i386 0:0.9.1-3.1 libart_lgpl.i386 0:2.3.17-4 libpng-devel.i386 2:1.2.10-7.1.el5_0.1 libpng-devel.x86_64 2:1.2.10-7.1.el5_0.1 mesa-libGL-devel.i386 0:6.5.1-7.5.el5 xorg-x11-proto-devel.i386 0:7.1-9.fc6
Complete!</pre>
<h2>Step # 2: Down load lat est rrd tool tar ball</h2>
<p>Type the fol low ing com mands:<br />
<code># cd /opt/<br />
# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.1.tar.gz</code><br />
Untar tar ball, enter:<br />
<code># tar -zxvf rrdtool-1.3.1.tar.gz</code></p>
<h2>Step #3: Com pile and install rrdtool</h2>
<p>You need to set PKG_CONFIG_PATH, enter:<br />
<code># export PKG_CONFIG_PATH=/usr/lib/pkgconfig/</code><br />
Type the fol low ing com mands:<br />
<code># ./configure</code><br />
Sam ple output:</p>
<pre>config.status: executing default-1 commands
config.status: executing intltool commands
config.status: executing default commands
config.status: executing po/stamp-it commands
checking in... and out again
ordering CD from http://tobi.oetiker.ch/wish .... just kidding <img src="http://ongmap.net/wp-includes/images/smilies/icon_wink.gif" alt=";-)" /> 

----------------------------------------------------------------
Config is DONE!

          With MMAP IO: yes
       Static programs: no
          Perl Modules: perl_piped perl_shared
           Perl Binary: /usr/bin/perl
          Perl Version: 5.8.8
          Perl Options: PREFIX=/usr/local/rrdtool-1.3.1 LIB=/usr/local/rrdtool-1.3.1/lib/perl/5.8.8
          Ruby Modules:
           Ruby Binary: no
          Ruby Options: sitedir=$(DESTDIR)NONE/lib/ruby
    Build Tcl Bindings: no
 Build Python Bindings: yes
          Build rrdcgi: yes
       Build librrd MT: yes
     Link with libintl: yes

             Libraries: -lxml2 -lcairo -lcairo -lcairo -lm  -lcairo -lpng12   -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  

Type 'make' to compile the software and use 'make install' to
install everything to: /usr/local/rrdtool-1.3.1.

       ... that wishlist is NO JOKE. If you find RRDtool useful
make me happy. Go to http://tobi.oetiker.ch/wish and
place an order.

                               -- Tobi Oetiker
----------------------------------------------------------------</pre>
<p>Now com pile and install RRD Tool on RHEL:<br />
<code># make<br />
# make install<br />
# cd /usr/local/<br />
# ln -s rrdtool-1.3.1/ rrdtool/<br />
# cd rrdtool<br />
# ls -l</code></p>
<h3>How do I ver ify my installation?</h3>
<p>Now RRD tool is installed and ready to use. You can go to /usr/local/rrdtool/share/rrdtool/examples/ direc tory and run them to see if your instal la tion has been suc cess ful or not:<br />
<code># cd /usr/local/rrdtool/share/rrdtool/examples/<br />
# ./stripes.pl<br />
# ls -l<br />
# cp stripes.png /var/www/html/<br />
</code><br />
Fire a web browser and see a graph for your self by typ ing the fol low ing url:<br />
<code>http://your-domain.com/stripes.png</code><br />
<a href="http://www.cyberciti.biz/faq/wp-content/uploads/2008/07/stripes.png" target="_top"><img title="stripes" src="http://www.cyberciti.biz/faq/wp-content/uploads/2008/07/stripes.png" alt="" width="499" height="182" /></a><br />
(Fig.01: Sam ple RRD Tool Graph)</p>
<h3>Optional com pile time settings</h3>
<p>By default RRD Tool will get installed at /usr/local/rrdtool-1.3.1/ direc tory. To change default instal la tion direc tory use fol low ing com mand:<br />
<code># ./configure --prefix=/usr/local/rrdtool<br />
# make install</code><br />
To see all com pile con fig u ra tion option enter:<br />
<code># ./configure --help</code></p>
</div>
<div>
<div><a title="Comment on Install RRDTool on Red Hat Enterprise Linux / CentOS" href="http://ongmap.net/?p=106#respond">No Comments</a></div>
</div>
</div>
<div id="post-92">
<div>
<div>24</p>
<div>Jul</div>
</div>
<h1><a title="Permanent Link to Cacti, How to install" rel="bookmark" href="http://ongmap.net/?p=92">Cacti, How to install</a></h1>
<p>Posted by: admin</p>
</div>
<div>
<p>Cacti is a com plete fron tend to RRD Tool, it stores all of the nec es sary infor ma tion to cre ate graphs and pop u late them with data in a MySQL data base. The fron tend is com pletely PHP dri ven. Along with being able to main tain Graphs, Data Sources, and Round Robin Archives in a data base, cacti han dles the data gath er ing. There is also SNMP sup port for those used to cre at ing traf fic graphs with MRTG.</p>
<p><strong>Cacti require ment:</strong></p>
<p>MySQL<br />
PHP<br />
RRD Tool<br />
net-snmp<br />
php-snmp<br />
Apache (com piled with php support)</p>
<p><strong><br />
MySQL con fig u ra tion for cacti:</strong></p>
<div>
<div>Code:</div>
<pre>[root:~]# mysql -uroot -p
Enter password:
mysql&gt; create database cactidb;
mysql&gt; grant all on cactidb.* to root;
mysql&gt; grant all on cactidb.* to root@localhost;
mysql&gt; grant all on cactidb.* to cactiuser;
mysql&gt; grant all on cactidb.* to cactiuser@localhost;
mysql&gt; set password for cactiuser@localhost=password('cactipw');
mysql&gt; flush privileges;
mysql&gt; exit
[root:~]#</pre>
</div>
<p><strong>RRD Tool Installation:</strong></p>
<div>
<div>Code:</div>
<pre>[root:~]# cd /usr/local/src/
[root:~]# wget <a href="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool.tar.gz" target="_top">http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool.tar.gz</a>
[root:~]# tar -zxf rrdtool.tar.gz
[root:~]# cd rrdtool*
[root:~]# ./configure
[root:~]# make
[root:~]# make install
[root:~]# make site-perl-install
[root:~]# cd ..
[root:~]# rm -fr rrdtool*
[root:~]#</pre>
</div>
<p><strong>Down load and setup cacti:</strong></p>
<div>
<div>Code:</div>
<pre>[root:~]# group-add cacti
[root:~]# useradd -g cacti cactiuser</pre>
</div>
<div>
<div>Code:</div>
<pre>[root:~]# tar -zxvf cacti*
[root:~]# mv cacti-0.8.xx /home/cactiuser/cacti
[root:~]# cd /home/cactiuser/cacti
[root:~]# mysql --user=root --password=rootpw cactidb &lt; cacti.sql
[root:~]# chown -R cactiuser rra/ log/</pre>
</div>
<p>Make the proper changes for data base and data base password:</p>
<p><strong>[root:~]# vi /include/config.php</strong></p>
<div>
<div>Code:</div>
<pre>$database_defaut = “cactidb”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “cactipw”</pre>
</div>
<p><strong>Add this cron in /etc/crontab</strong></p>
<p>*/5 * * * * cac tiuser php /home/cactiuser/cacti/poller.php &gt; /dev/null 2&gt;&amp;1</p>
<p>Add an <em>alias</em> or vir tual host in your apache con fig u ra tion file:</p>
<p><strong>Alias /cacti/ “/home/cactiuser/cacti/”</strong></p>
<p>Save and restart the apache and mysql service.</p>
<p><strong>Post Instal la tion Steps:</strong></p>
<p>Browse the below men tioned URL:</p>
<p><a href="http://localhost/cacti" target="_top">http://localhost/cacti</a></p>
<p>–OR–</p>
<p><a href="http://remoteip/cacti" target="_top">http://remoteIP/cacti</a></p>
</div>
<div>
<div><a title="Comment on Cacti, How to install" href="http://ongmap.net/?p=92#respond">No Comments</a></div>
</div>
</div>
<div id="post-88">
<div>
<div>23</p>
<div>Jul</div>
</div>
<h1><a title="Permanent Link to Nagios, what is &amp; how to install" rel="bookmark" href="http://ongmap.net/?p=88">Nagios, what is &amp; how to install</a></h1>
<p>Posted by: admin</p>
</div>
<div>
<p><em>What is NAGIOS ?</em></p>
<p>Nagios is a host and ser vice mon i tor designed to inform you of net work prob lems before your clients, end-users or man agers do. It has been designed to run under the Linux oper at ing sys tem, but works fine under most *NIX vari ants as well</p>
<p><em>Sys tem Requirements</em></p>
<p>Make sure you’ve installed the fol low ing pack ages on your Fedora instal la tion before continuing.</p>
<ul>
<li>Apache</li>
<li>GCC com piler</li>
<li>GD devel op ment libraries</li>
</ul>
<p>You can use yum to install these pack ages by run ning the fol low ing com mands (as root):</p>
<pre><code>yum install httpd</code>
<code>yum install gcc             </code>
<code>yum install glibc glibc-common</code>
<code>yum install gd gd-devel</code></pre>
<p><em>Instal la tion :</em></p>
<p>Cre ate Account Infor ma tion<br />
1. Become the root user.</p>
<pre><code>su -l </code></pre>
<p>2.Create a new nagios user account and give it a password.</p>
<pre><code>/usr/sbin/useradd -m nagios</code>
<code>passwd nagios</code></pre>
<p>3. To pre vent nagios user name to access the ssh you can set the spe cific user access on the /etc/passwd ‚example:</p>
<pre><code>vi /etc/passwd</code>
<code>nagios:x:7798:7798::/home/nagios:/bin/bash --&gt; /bin/bash was the default command to access ssh you can changes it into</code> /<em>dev</em>/null
<code>nagios:x:7798:7798::/home/nagios:</code>/<em>dev</em>/null</pre>
<p>To know more about the /etc/passwd for mat like above you can refer to <a title="http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/" href="http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/" target="_top">http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/</a></p>
<p>4. Cre ate a new nagcmd group for allow ing exter nal com mands to be sub mit ted through the web inter face. Add both the nagios user and the apache user to the group.</p>
<pre><code>/usr/sbin/groupadd nagcmd</code>
<code>/usr/sbin/usermod -G nagcmd nagios</code>
<code>/usr/sbin/usermod -G nagcmd apache</code></pre>
<p><em>Down load Nagios and the Plugins</em></p>
<p>1.Create a direc tory for stor ing the downloads.</p>
<pre>mkdir ~/downloads
cd ~/downloads</pre>
<p>2. Down load the source code tar balls of both Nagios and the Nagios plu g ins (visit <a title="http://www.nagios.org/download/" href="http://www.nagios.org/download/" target="_top">http://www.nagios.org/download/</a> for links to the lat est ver sions). At the time of writ ing, the lat est ver sions of Nagios and the Nagios plu g ins were 3.0.3 and 1.4.11, respectively.</p>
<pre>wget <a title="http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.3.tar.gz" href="http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.3.tar.gz" target="_top">http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.3.tar.gz</a>
wget <a title="http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz" href="http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz" target="_top">http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4...</a></pre>
<p><em>Com pile and Install Nagios</em></p>
<p>1. Extract the Nagios source code tarball.</p>
<pre>cd ~/downloads  tar xzf nagios-3.0.3.tar.gz
cd nagios-3.0.3</pre>
<p>2. Run the Nagios con fig ure script, pass ing the name of the group you cre ated ear lier like so:</p>
<pre>./configure --with-command-group=nagcmd</pre>
<p>3. Com pile the Nagios source code.</p>
<pre>make all</pre>
<p>4. Install bina ries, init script, sam ple con fig files and set per mis sions on the exter nal com mand directory.</p>
<pre>make install
make install-init
make install-config
make install-commandmode</pre>
<p><em>Cus tomize Configuration</em></p>
<p>1.Sample con fig u ra tion files have now been installed in the /usr/local/nagios/etc direc tory. These sam ple files should work fine for get ting started with Nagios. You’ll need to make just one change before you proceed…</p>
<p>2.Edit the /usr/local/nagios/etc/objects/contacts.cfg con fig file with your favorite edi tor and change the email address asso ci ated with the nagiosad min con tact def i n i tion to the address you’d like to use for receiv ing alerts.</p>
<pre>vi /usr/local/nagios/etc/objects/contacts.cfg
define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user

email <a href="mailto:postmaster@test.com" target="_top">postmaster@test.com</a> ; &lt;&lt;***** CHANGE THIS TO YOUR EMAIL ADDRESS ******</pre>
<p><em>Con fig ure the Web Interface</em></p>
<p>1. Install the Nagios web con fig file in the Apache conf.d directory.</p>
<pre>make install-webconf</pre>
<p>2. Cre ate a nagiosad min account for log ging into the Nagios web inter face. Remem ber the pass word you assign to this account — you’ll need it later.</p>
<pre>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</pre>
<p>3. Restart Apache to make the new set tings take effect.</p>
<pre>service httpd restart</pre>
<p><em>Com pile and Install the Nagios Plugins</em></p>
<p>1. Extract the Nagios plu g ins source code tarball.</p>
<pre>cd ~/downloads  tar xzf nagios-plugins-1.4.11.tar.gz  cd nagios-plugins-1.4.11</pre>
<p>2. Com pile and install the plugins.</p>
<pre>./configure --with-nagios-user=nagios --with-nagios-group=nagios  make  make install</pre>
<p><em>Start Nagios</em></p>
<p>1. Add Nagios to the list of sys tem ser vices and have it auto mat i cally start when the sys tem boots.</p>
<pre>chkconfig --add nagios  chkconfig nagios on</pre>
<p>2. Ver ify the sam ple Nagios con fig u ra tion files.</p>
<pre>/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</pre>
<p>3. If there are no errors, start Nagios.</p>
<pre>service nagios start</pre>
<p>4. You should now be able to access the Nagios web inter face at the URL below. You’ll be prompted for the user name (nagiosad min) and pass word you spec i fied earlier.</p>
<pre>http://localhost/nagios/</pre>
<p>5. Click on the “Ser vice Detail” navbar link to see details of what’s being mon i tored on your local machine. It will take a few min utes for Nagios to check all the ser vices asso ci ated with your machine, as the checks are spread out over time.</p>
<p><em>How to add another server ip address to the ser vice list</em></p>
<p>1. Go to /usr/local/nagios/etc/objects/localhost.cfg</p>
<pre>vi /usr/local/nagios/etc/objects/localhost.cfg</pre>
<p>2. On HOST DEFINITION area add this</p>
<pre># Define a host for the local machine

define host{
use linux-server
host_name 219.99.229.221
alias 219.99.229.221
address 219.99.229.221
}</pre>
<p>3. And do not for get to add the ip address to the HOST GROUP DEFINITION area</p>
<pre># Define an optional hostgroup for Linux machines

define hostgroup{
hostgroup_name linux-servers ; The name of the hostgroup
alias Linux Servers ; Long name of the group
members localhost; Comma separated list of hosts that belong to this group
}
define hostgroup{
hostgroup_name linux-servers-monitoring ; The name of the hostgroup
alias Linux Servers Monitoring ; Long name of the group members 219.99.229.221; Comma separated list of hosts that belong to this group
}</pre>
<p>4. And if you wanted to add the Ping and Http ser vice go to SERVICE DEFINITIONS area and please add this</p>
<pre># Define a service to "ping" the local machine

define service{
use local-service ; Name of service template to use
host_name localhost
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}

define service{
use local-service ; Name of service template to use
host_name 219.99.229.221
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.

define service{
use local-service ; Name of service template to use
host_name localhost
service_description HTTP
check_command check_http

notifications_enabled 0
}
define service{
use local-service ; Name of service template to use
host_name 219.99.229.221
service_description HTTP
check_command check_http
notifications_enabled 1 #-----&gt; 1 to enable it 0 to disable it
}</pre>
<p>5. then save the files then reload the nagios service</p>
<pre>service nagios reload</pre>
<p><em>Check error detail</em></p>
<p>1 To checked the detail error on what line you can use this com mand, it will show you the direct error line</p>
<pre>/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</pre>
<p><em>How to add another mailto nagios Contacts</em></p>
<p>1. You can set the email on /usr/local/nagios/etc/objects/contacts.cfg go to con tact Area</p>
<pre>vi /usr/local/nagios/etc/objects/contacts.cfg
define contact{
       contact_name                    nagiosadmin             ; Short name of user
       use                             generic-contact         ; Inherit default values from generic-contact template (defined above)
       alias                           Nagios Admin            ; Full name of user

       email                           <a href="mailto:postmaster@test.org" target="_top">postmaster@test.org</a>    ; &lt;&lt;***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}

define contact{
       contact_name                    test             ; Short name of user
       use                             generic-contact         ; Inherit default values from generic-contact template (defined above)
      alias                            test           ; Full name of user

      email                            <a href="mailto:test@test.org" target="_top">test@test.org</a>   ; &lt;&lt;***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}</pre>
<p>2. And do not for get to add the new con tact name to the con tact groups area</p>
<pre>define contactgroup{
     contactgroup_name       admins
     alias                   Nagios Administrators
     members                 nagiosadmin,test
     }</pre>
<p>3. Reload the nagios</p>
<pre>service nagios reload</pre>
<p>4. And you can see the new con tact on your nagios web , <a title="http://localhost/nagios" href="http://localhost/nagios" target="_top">http://localhost/nagios</a> -&gt; scroll down and go to <a href="http://208.99.198.190/nagios/cgi-bin/config.cgi" target="_top">View Con fig</a> -&gt; Object Type: -&gt; pick con tacts -&gt; click continue</p>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ongmap.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ongmap.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ongmap.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ongmap.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ongmap.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ongmap.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ongmap.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ongmap.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ongmap.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ongmap.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=10&subd=ongmap&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ongmap.wordpress.com/2010/07/29/install-monit-for-monitor-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/26b27f645b1c4af51c0a6fde91830a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinosg</media:title>
		</media:content>

		<media:content url="http://ongmap.files.wordpress.com/2010/07/5.jpg?w=238" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/1.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/2.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/3.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/4.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/51.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/6.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/7.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/8.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/9.jpg?w=300" medium="image" />

		<media:content url="/DOCUME~1/quan.hoa/LOCALS~1/Temp/moz-screenshot-1.png" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/10.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/11.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/12.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/13.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.files.wordpress.com/2010/07/14.jpg?w=300" medium="image" />

		<media:content url="http://ongmap.net/wp-includes/images/smilies/icon_wink.gif" medium="image">
			<media:title type="html">;-)</media:title>
		</media:content>

		<media:content url="http://www.cyberciti.biz/faq/wp-content/uploads/2008/07/stripes.png" medium="image">
			<media:title type="html">stripes</media:title>
		</media:content>
	</item>
		<item>
		<title>Save Share Settings and Permissions</title>
		<link>http://ongmap.wordpress.com/2010/07/09/save-share-settings-and-permissions/</link>
		<comments>http://ongmap.wordpress.com/2010/07/09/save-share-settings-and-permissions/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 02:05:59 +0000</pubDate>
		<dc:creator>dinosg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ongmap.wordpress.com/?p=8</guid>
		<description><![CDATA[If you need to complete any of the following procedures, you can save the share names that exist on the original Windows installation, including any permissions assigned to those shares:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=8&subd=ongmap&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>If you need to complete any of the following procedures, you can save the share names that exist on the original Windows installation, including any permissions assigned to those shares:</p>
<ul>
<li>Reinstall Windows over an existing installation (a clean install, not an upgrade).</li>
<li>Move all of your data drives from one server to another.</li>
<li>Install Windows to another folder or drive on a computer that already has Windows installed.</li>
</ul>
<p>To save only the existing share names and their permissions on Windows NT4.0/W2K/XP/2003 follow these steps.</p>
<h2>Method #1</h2>
<ol>
<li>On the existing Windows installation that contains the share names and permissions that you want to save, start Registry Editor (Regedt32.exe or Regedit.exe).</li>
<li>Go to the following key:</li>
</ol>
<div>
<div>
<pre>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares</pre>
</div>
</div>
<ol>
<li>Click Save Key on the Registry menu.</li>
<li>Type a new file name (a file extension is not necessary), and then save the file to a floppy disk.</li>
<li>Reinstall Windows (if you have to, don&#8217;t do it just because I said so&#8230;).</li>
<li>Run Registry Editor (Regedt32.exe or Regedit.exe).</li>
<li>Go to the following key:</li>
</ol>
<div>
<div>
<pre>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares</pre>
</div>
</div>
<ol>
<li>Click Restore on the Registry menu.</li>
<li>Type the path and file name of the file that you saved in steps 3 and 4.</li>
</ol>
<p><strong>Caution:</strong> This step overrides the shares that already exist on the Windows computer with the share names and permissions that exist in the file you are restoring. You are warned about this before you restore the key.</p>
<p><ins><ins></ins></ins></p>
<p><strong>Note:</strong> You can also do the trick by double-clicking the registry file you&#8217;ve created in step 3, if you&#8217;ve used Regedit and if the file extension is .REG.</p>
<ol>
<li>Restart the server.</li>
</ol>
<p><strong>Note:</strong> After you complete this procedure, if you decide that you should not have restored the Shares key, restart the computer and press the SPACEBAR to use the last known good configuration. After you restore the shares key, the shares can be used by network clients. If you run the net shares command on the server, the server displays the shares; however, File Manager does not display the shares. To make File Manager aware of the newly restored shares, create any new share on the server. File Manager displays all of the other shares after you restart the server or stop and restart the Server service.</p>
<p>Only permissions for domain users are restored. If a local user was created in the previous Windows NT installation, that local user&#8217;s unique security identifier (SID) is lost. NTFS permissions on folders and files are not affected when you save and restore the shares key.</p>
<h2>Method #2</h2>
<p>Use the NET SHARE program to create the new share structure, then use the PERMCOPY program found in the Windows 2000 Resource Kit to copy share permissions. The syntax is quite easy:</p>
<p>PERMCOPY //SourceServer ShareName //DestinationServer ShareName</p>
<h2>Links</h2>
<p><a href="http://support.microsoft.com/?kbid=125996">Saving and Restoring Existing Windows Shares &#8211; 125996</a><img src="http://www.petri.co.il/images/link_out_ico.gif" border="0" alt="" width="22" height="11" /></p>
<p>(from Petri)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ongmap.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ongmap.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ongmap.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ongmap.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ongmap.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ongmap.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ongmap.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ongmap.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ongmap.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ongmap.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=8&subd=ongmap&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ongmap.wordpress.com/2010/07/09/save-share-settings-and-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/26b27f645b1c4af51c0a6fde91830a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinosg</media:title>
		</media:content>

		<media:content url="http://www.petri.co.il/images/link_out_ico.gif" medium="image" />
	</item>
		<item>
		<title>Disable Hidden Admin Share</title>
		<link>http://ongmap.wordpress.com/2010/06/21/disable-hidden-admin-share/</link>
		<comments>http://ongmap.wordpress.com/2010/06/21/disable-hidden-admin-share/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 06:43:24 +0000</pubDate>
		<dc:creator>dinosg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ongmap.wordpress.com/?p=5</guid>
		<description><![CDATA[The system automatically creates hidden "administrative shares" for its logical drives C:, D:, and so forth which it names C$, D$ and so forth. It also creates the admin$ hidden share for to the \winnt folder. These shares are designed for remote access support by domain administrators. By default, if you delete these admin shares, they will be recreated when you reboot. To disable permanently so they will not be recreated on the next reboot, use the following Windows NT / Windows 2000 / Windows XP registry hack:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=5&subd=ongmap&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>The system automatically creates hidden &#8220;<strong>administrative shares</strong>&#8221;  for its  logical drives C:, D:, and so forth which it names C$, D$ and so forth.  It also  creates the admin$ hidden share for to the \winnt folder. These shares  are  designed for remote access support by domain administrators. By default,  if you  delete these admin shares, they will be recreated when you reboot. To  disable  permanently so they will not be recreated on the next reboot, use the  following  Windows NT / Windows 2000 / Windows XP registry hack:</p>
<p><strong>Hive:</strong> <span style="color:green;"><strong>HKEY_LOCAL_MACHINE</strong></span><br />
<strong>Key:</strong> <span style="color:green;"><strong>SYSTEM\CurrentControlSet\Services\LanManServer\Parameters</strong></span><br />
<strong>Name:</strong> <span style="color:green;"><strong>AutoShareServer</strong></span> for servers<br />
<strong>Name:</strong> <span style="color:green;"><strong>AutoShareWks</strong></span> for workstations<br />
<strong>Type:</strong> <span style="color:green;"><strong>REG_DWORD</strong></span><br />
<strong>Value:</strong> <span style="color:green;"><strong>0</strong></span></p>
<p>For background: <a href="http://support.microsoft.com/support/kb/articles/q156/3/65.asp">Q156365</a>.   For details on disabling in Windows XP, see <a href="http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q314984" target="_blank">Q314984</a>. In Windows 2000 and Windows XP, you disable  the  shares via</p>
<ul>
<li>Start</li>
<li>Settings</li>
<li>Control Panel</li>
<li>Systems Tools panel</li>
<li>Shared Folders</li>
<li>Double-click the Shared Folders branch to expand it</li>
<li>Click Shares</li>
<li>In the Shared Folder column, right-click the share you want to  disable</li>
<li>Click Stop sharing</li>
<li>Cick OK.</li>
</ul>
<p>NOTE: If you disable an administrative share  that you  have created, it will not be automatically enabled after you restart  your  computer, and you will need to recreate the share.</p>
<p>Perhaps the best approach to protect hard drive resources on  workstations is  to disable the server service if you can. There are a few workstation  applications that need server service running, in particular, some SNA  emulation  packages.</p>
<p>(from windowsnetworking)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ongmap.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ongmap.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ongmap.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ongmap.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ongmap.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ongmap.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ongmap.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ongmap.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ongmap.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ongmap.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=5&subd=ongmap&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ongmap.wordpress.com/2010/06/21/disable-hidden-admin-share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/26b27f645b1c4af51c0a6fde91830a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinosg</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://ongmap.wordpress.com/2009/07/11/hello-world/</link>
		<comments>http://ongmap.wordpress.com/2009/07/11/hello-world/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 08:52:54 +0000</pubDate>
		<dc:creator>dinosg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=1&subd=ongmap&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ongmap.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ongmap.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ongmap.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ongmap.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ongmap.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ongmap.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ongmap.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ongmap.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ongmap.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ongmap.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ongmap.wordpress.com&blog=8528761&post=1&subd=ongmap&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://ongmap.wordpress.com/2009/07/11/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/26b27f645b1c4af51c0a6fde91830a35?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinosg</media:title>
		</media:content>
	</item>
	</channel>
</rss>