<?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/"
	>

<channel>
	<title>Linux Admin Steps Into Management &#187; Linux &#8211; Windows integration</title>
	<atom:link href="http://yonitg.com/category/linux-windows-integration/feed/" rel="self" type="application/rss+xml" />
	<link>http://yonitg.com</link>
	<description></description>
	<lastBuildDate>Fri, 02 Jul 2010 13:28:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>NFS mount &#8211; When Your Shares Go Wrong</title>
		<link>http://yonitg.com/nfs-mount-debugging/</link>
		<comments>http://yonitg.com/nfs-mount-debugging/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 22:14:43 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=344</guid>
		<description><![CDATA[How to work with nfs mounts - command lines tool to check the server exports and debug nfs mounting problems.]]></description>
			<content:encoded><![CDATA[<p>From Wikipedia:</p>
<blockquote><p><a title="NFS on wikipedia" href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" target="_blank"><strong>Network File System</strong> (<strong>NFS</strong></a><a title="NFS on wikipedia" href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" target="_blank">)</a> is a network file system protocol originally developed by Sun Microsystems in 1984, allowing a user on a client computer to access files over a network in a manner similar to how local storage is accessed.</p></blockquote>
<p>So basically its a network share, it allows you to share files between remote computers<br />
in the most easy and seamless way, once it was specifically for UNIX servers,<br />
but today NFS is supported over MS servers as well.</p>
<p>Like everything else in Sysadmin life,<br />
when its working its working well, and nobody hears about it,<br />
but what to do when its not working?<br />
<a title="How to Debug Samba Server" href="http://yonitg.com/howto-debug-samba-server/" target="_blank">Samba debugging</a> for example is easier from that aspect since it has extensive logs for the sysadmin,<br />
NFS doesn&#8217;t keep logs, and NFS issues doesn&#8217;t show up in the syslog/messages file as well.</p>
<p>But there are tools that allow you to get extensive information about the running NFS process,<br />
shares, statistics, users connected etc :</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="391" valign="top">
<h3><span style="color: #0000ff;"><strong>Description</strong></span></h3>
</td>
<td width="247" valign="top">
<h3><span style="color: #0000ff;"><strong>Command</strong></span></h3>
</td>
</tr>
<tr>
<td width="391" valign="top">see what the machine is exporting<strong> </strong></td>
<td width="247" valign="top">SunOS: # exportfs<br />
Solaris: # share</td>
</tr>
<tr>
<td width="391" valign="top">Print the list of shared file systems<strong> </strong></td>
<td width="247" valign="top">showmount   -e server_name</td>
</tr>
<tr>
<td width="391" valign="top">Print the list of all clients mounting a   directory from the questioned server</td>
<td width="247" valign="top">showmount -a server_name</td>
</tr>
<tr>
<td width="391" valign="top">Print the directory and all the clients that   are mounting it curretly &#8211; from within the nfs server</td>
<td width="247" valign="top">dfmounts</td>
</tr>
<tr>
<td width="391" valign="top">print the nfs netwrok statistics<strong> </strong></td>
<td width="247" valign="top">client side: nfsstat -c<br />
server side: nfsstat -s</td>
</tr>
<tr>
<td width="391" valign="top">To see that nfsd is responding</td>
<td width="247" valign="top">rpcinfo   -T udp crimson nfs</td>
</tr>
<tr>
<td width="391" valign="top">To see that mountd is responding</td>
<td width="247" valign="top">rpcinfo -T udp crimson mountd</td>
</tr>
<tr>
<td width="391" valign="top">To see that lockd is responding</td>
<td width="247" valign="top">rpcinfo   -T udp crimson nlockmgr</p>
<p>rpcinfo   -T udp crimson llockmgr</td>
</tr>
</tbody>
</table>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/NFS' rel='tag' target='_self'>NFS</a>, <a class='technorati-link' href='http://technorati.com/tag/samba' rel='tag' target='_self'>samba</a>, <a class='technorati-link' href='http://technorati.com/tag/Solaris' rel='tag' target='_self'>Solaris</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=344&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/nfs-mount-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>solaris 10 and vnc</title>
		<link>http://yonitg.com/solaris-10-vnc/</link>
		<comments>http://yonitg.com/solaris-10-vnc/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 21:35:20 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=338</guid>
		<description><![CDATA[VNC viewer is a free remote control software package. With VNC, you can see the desktop of a remote machine and control it with your local mouse and keyboard, just like you would do it sitting in the front of that computer. Now Solaris 10 comes with vncserver built in.]]></description>
			<content:encoded><![CDATA[<p>VNC is a server client method of connecting to a remote server,<br />
the great thing about vnc is that you can see the remote server desktop, and work on it with a mouse just like its your local desktop.<br />
another good thing about vnc is that its free for use for many distros.</p>
<p>There are main 2 major software companies that supply free vnc server and vnc cllient,<br />
the first is <a title="realvnc free download " href="http://www.realvnc.com/products/download.html" target="_blank">realvnc</a> and the second is <a title="tightvnc free vnc" href="http://www.tightvnc.com/download.php" target="_blank">tightvnc </a>, from the tighvnc site:</p>
<p>TightVNC is a free remote control software package. With TightVNC, you can <span style="color: #007000;"><strong>see the     desktop of a remote machine and control it</strong></span> with your local mouse and keyboard, just like you     would do it sitting in the front of that computer. TightVNC is:</p>
<ul>
<li><span style="color: #007000;"><strong>free</strong></span> for both personal and commercial usage, with full source code available (<a title="gnu license" href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GPL</a>-licensed);</li>
<li>useful in remote administration, remote customer support, education, and for many other       purposes;</li>
<li>cross-platform, available for Windows and Unix, compatible with other VNC software.</li>
</ul>
<p>So these are 2 options for you to download a good free vnc viewer.</p>
<h2>Solaris VNCserver configuration</h2>
<p>and I say only viewer because now the Solaris 10 build 5 comes with the vncserver alredy inside.<br />
all you need to do is to configure it.</p>
<p>This page on the SUN site will give you the detailed explanation on how to do things and what <a title="Install a patch before using Xvnc" href="http://docs.sun.com/app/docs/doc/819-0872/remotead-20?l=en&amp;a=view&amp;q=vnc+solaris+10" target="_blank">security patch you need to install fisrt </a>,but the instructions can be summed up in 4 lines:</p>
<blockquote><p>mkdir -p /etc/dt/config</p>
<p>cp /usr/dt/config/Xservers    /etc/dt/config/Xservers</p>
<p>edit this file “/etc/dt/config/Xservers” and add these lines at the end:</p>
<p>:1  Local local_uid@none root /usr/X11/bin/Xvnc :1 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
:2  Local local_uid@none root /usr/X11/bin/Xvnc :2 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
:3  Local local_uid@none root /usr/X11/bin/Xvnc :3 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
And reboot the server.</p></blockquote>
<p>The lines with the :1 :2 etc at the beginning, are the virtual displays you wish to server to have available for connections, you can add more by changing the numbers to :4 :5 etc.</p>
<p>when connecting to the server with the vnc viewer you need to express to which virtual display you want to connect by adding it to end of the server&#8217;s name or ip:</p>
<blockquote><p>10.10.10.1:3</p></blockquote>
<p>If you want to connect to virtual display number 3.</p>
<p>A security note – this configuration will allow passwordless access to the vnc screen – if someone logs in and leaves it open – the next user can just enter without a login.</p>
<p>A safer configuration is to require a password by using the <kbd><strong>-SecurityTypes VncAuth</strong></kbd> parameter. The Xvnc(1) man page describes password requirements.</p>
<h2><strong>VNC and Security</strong></h2>
<p>The vnc as a general is clear text, for a more secure connection there is a method of tunneling the vnc through a ssh session.<br />
2 nice tutorials for vnc through ssh can be found <a title="VNC over SSH2 - A TightVNC Tutorial" href="http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html" target="_blank">here</a> and <a title="Tunnelling VNC over SSH with PuTTY" href="http://martybugs.net/smoothwall/puttyvnc.cgi" target="_blank">here</a>.<br />
the second tutorial is using putty for the ssh connection &#8211; putty is another great freeware,<br />
its a <a title="PuTTY Download Page" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">free ssh client for windows</a> to connect to ssh servers.</p>
<p>If the server you wish to connect to through vnc is located withing your lan,<br />
and you are relaxed about security for the users on it &#8211; if its a training server etc ,<br />
you can just setup the vncserver without any safeguards,<br />
but if you are connecting through an unsecured medium (AKA the internet)<br />
you better add the ssh layer to it.</p>
<p><a href="http://www.amazon.com/Solaris-10-System-Administration-Essentials/dp/013700009X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D013700009X"><img src="http://ecx.images-amazon.com/images/I/41E-zuGuMFL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Solaris-Security-Essentials-Microsystems-Engineers/dp/0137012330%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0137012330"><img src="http://ecx.images-amazon.com/images/I/41DnAUzC0jL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Solaris-Solutions-System-Administrators-Time-Saving/dp/047143115X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D047143115X"><img src="http://ecx.images-amazon.com/images/I/51VF610-5JL._SL160_.jpg" alt="" /></a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/desktop' rel='tag' target='_self'>desktop</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/network' rel='tag' target='_self'>network</a>, <a class='technorati-link' href='http://technorati.com/tag/Solaris' rel='tag' target='_self'>Solaris</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=338&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/solaris-10-vnc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache Active Directory Authentication</title>
		<link>http://yonitg.com/apache-active-directory-authentication/</link>
		<comments>http://yonitg.com/apache-active-directory-authentication/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 22:32:54 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=310</guid>
		<description><![CDATA[Apache server is a strong web server that can serve great open source application like Mediawiki which is a great solution for information sharing, but what if you want to use Mediawiki to share information only for the local office active directory domain members? Or even only to members of a specific group in the [...]]]></description>
			<content:encoded><![CDATA[<p>Apache server is a strong web server that can serve great open source application like <a href="http://www.mediawiki.org/wiki/MediaWiki" target="_blank">Mediawiki</a> which is a great solution for information sharing,<br />
but what if you want to use Mediawiki to share information only for the local office active directory domain members?<br />
Or even only to members of a specific group in the active directory?</p>
<p>In Apache you have a specific module called <a href="http://httpd.apache.org/docs/2.0/mod/mod_ldap.html" target="_blank">mod_ldap</a> which allows you to use the Active Directory as an authentication server for your users,<br />
so you can create a secure wiki branch for each department users.</p>
<p>To setup the apache server to use Active Directory as access manager you will need to make sure the mod_ldap was compiled with the apache server and that these lines are in the httpd.conf file:</p>
<blockquote><p>LoadModule authnz_ldap_module modules/mod_authnz_ldap.so<br />
LoadModule ldap_module modules/mod_ldap.so</p></blockquote>
<p>If you have a Windows server installed with the <a href="http://yonitg.com/apache-mysql-php-perl-windows/" target="_blank">xampp install of apache and mysql</a>, you will have the module pre-compiled into the apache server,<br />
however testing that it’s loaded can be done with:</p>
<blockquote><p>C:\xampp\apache\bin\httpd.exe -t -D DUMP_MODULES<br />
the output should have these lines:<br />
authnz_ldap_module (shared)<br />
ldap_module (shared)</p></blockquote>
<p>Once you have the mod_ldap modules loaded you can add to the apache configuration file the user authentication support:</p>
<h3>Any Authenticated user from the Domain:</h3>
<blockquote style="width: 141.14%; height: 221px;"><p>&lt;Location /Finance_Wiki&gt;<br />
Require valid-user<br />
AuthType Basic<br />
AuthName &#8220;Finance Wiki Access&#8221;<br />
AuthBasicProvider &#8220;ldap&#8221;<br />
AuthLDAPBindDN &#8220;CN=proxy_user,OU=sub_group,OU=main_group,DC=some,DC=domain,DC=com&#8221;<br />
AuthLDAPBindPassword &#8220;proxy_user_pass&#8221;<br />
AuthLDAPURL &#8220;ldap://pdc.some.domain.com:389/OU=main_group,DC=some,DC=domain,DC=com?sAMAccountName?sub?(objectClass=*)&#8221;<br />
&lt;/Location&gt;</p></blockquote>
<p>The AuthLDAPBindDN and AuthLDAPBindPassword settings are for setting a user that will allow the apache server to browse the Active Directory structure,<br />
the user created for this should have the minimum rights possible in the domain.</p>
<p>This specific apache configuration will allow any user from the domain to share the /Finance_Wiki folder, but if you want to allow access for a specific group you need to add this configuration line:</p>
<blockquote><p>require ldap-group CN=groupname,OU=group.container,OU=main_group,DC=some,DC=domain,DC=com</p></blockquote>
<p>This is the part that will require the active directory authentication for a specific group.</p>
<p>This way you can prepare a wiki branch for each group in your company to securely share internal files.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/apache' rel='tag' target='_self'>apache</a>, <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/desktop' rel='tag' target='_self'>desktop</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a>, <a class='technorati-link' href='http://technorati.com/tag/xampp' rel='tag' target='_self'>xampp</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=310&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/apache-active-directory-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test http server from windows command line</title>
		<link>http://yonitg.com/test-http-server-windows-command-line/</link>
		<comments>http://yonitg.com/test-http-server-windows-command-line/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:45:49 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=286</guid>
		<description><![CDATA[So you went ahead and did a little change to your web site, or web server redirect, and you want to test it out without a sniffer, the fastest way to test the http server headers and output is from the command line so you can see exactly what the servers is sending. Now from [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-292" title="curl for windows" src="http://yonitg.com/blog/wp-content/uploads/2009/10/ds-curlicon.png" alt="curl for windows" width="99" height="37" /></p>
<p>So you went ahead and did a little change to your web site, or web server redirect,<br />
and you want to test it out without a sniffer,<br />
the fastest way to test the http server headers and output is from the command line so you can see exactly what the servers is sending.</p>
<p>Now from Linux you have built in tools like GET, and wget ad curl,<br />
wget and curl you can also install on windows to work from the command line.</p>
<p><strong>Curl For Windows</strong></p>
<p>Go ahead and <a title="test http from command line" href="http://curl.haxx.se/download.html" target="_blank">download curl</a> from their main website, you should get the Win32 &#8211; General version,<br />
or the Win64 binary.<br />
Better take the SSL enabled version if you will ever need to test SSL.<br />
Take the curl.exe file from the zip file and place it somewhere in your windows PATH.</p>
<p>To find which directories are already in the windows path open the command line and write:</p>
<blockquote><p><span style="color: #000000;">C:\&gt;echo %PATH%</span></p></blockquote>
<p>You will get the listing for such directories, just place the curl.exe in one of them.</p>
<p>Now for the tests:<br />
To get only the headers and not the file contents itself use &#8220;curl -I http://address&#8221;</p>
<blockquote><p><span style="color: #000000;">C:\&gt;curl -I http://some.site.com/blocked_folder/blocked.php<br />
HTTP/1.0 403 Forbidden<br />
Server: Apache<br />
Accept-Ranges: bytes<br />
Content-Type: text/html<br />
Expires: Tue, 27 Oct 2009 19:32:38 GMT<br />
Cache-Control: max-age=0, no-cache, no-store<br />
Pragma: no-cache<br />
Date: Tue, 27 Oct 2009 19:32:38 GMT<br />
Connection: keep-alive</span></p></blockquote>
<p>From this test you can see the file is forbidden, what are the caching setings for the server, and other headers information.</p>
<p>If you would like to see the full page contents just remove the &#8220;-I&#8221;.</p>
<p>another sample:</p>
<blockquote><p><span style="color: #000000;">C:\&gt;curl -I http://www.cisco.com/<br />
HTTP/1.1 200 OK<br />
Date: Tue, 27 Oct 2009 19:36:28 GMT<br />
Server: Apache/2.2<br />
Set-Cookie: CP_GUTC=62.214.121.218.123463458258569; path=/; expires=Sat, 21-Oct-34 19:36:28 GMT; domain=.cisco.com<br />
Last-Modified: Tue, 27 Oct 2009 16:34:14 GMT<br />
ETag: &#8220;5985&#8243;<br />
Accept-Ranges: bytes<br />
Content-Length: 22917<br />
CDCHOST: cdcxweb-prod1-02<br />
Content-Type: text/html</span></p></blockquote>
<p>this time we got a 200 reply which means the apache sent us the page,<br />
we can see the page&#8217;s size from the &#8220;Content-Length&#8221; header,<br />
and the other info the apache wants to send us.</p>
<h3>Testing for Virtual hosts</h3>
<p>Virtual hosting on apache can mean having more domain names on the same IP,<br />
and you can test each of these domains by adding a &#8220;Host&#8221; header to the curl test line:</p>
<blockquote><p><span style="color: #000000;">curl -H &#8220;Host: sub1.host.com&#8221; http://www.hosting.com/<br />
curl -H &#8220;Host: sub2.host.com&#8221; http://www.hosting.com/</span></p></blockquote>
<p>These 2 lines will bring back the html code for each of the different virtual hosts on the same server.</p>
<p>Here are some more ideas of using curl -for example:<br />
<a href="http://linux.byexamples.com/archives/311/sending-http-post-using-curl-command/" target="_blank">Sending POST data through curl</a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/apache' rel='tag' target='_self'>apache</a>, <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=286&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/test-http-server-windows-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution for Windows 7 samba connection problem</title>
		<link>http://yonitg.com/solution-for-windows-7-samba-connection-problem/</link>
		<comments>http://yonitg.com/solution-for-windows-7-samba-connection-problem/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 22:40:37 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Samba]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=276</guid>
		<description><![CDATA[A fresh install of windows 7 might have a problem with samba shares, if you setup samba logging you will see errors like this: [2009/08/26 09:15:53, 3] smbd/connection.c:yield_connection(76) yield_connection: tdb_delete for name  failed with error Record does not exist. [2009/08/26 09:15:53, 3] smbd/server.c:exit_server(614) although the user was able to connect from a different PC with [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-272" title="samba_linux" src="http://yonitg.com/blog/wp-content/uploads/2009/08/samba_linux.gif" alt="samba_linux" width="251" height="122" /></p>
<p>A fresh install of windows 7 might have a problem with samba shares,</p>
<p>if you <a title="Debugging Samba Server" href="http://yonitg.com/howto-debug-samba-server/">setup samba logging</a> you will see errors like this:</p>
<blockquote><p>[2009/08/26 09:15:53, 3] smbd/connection.c:yield_connection(76)<br />
yield_connection: tdb_delete for name  failed with error Record does not exist.<br />
[2009/08/26 09:15:53, 3] smbd/server.c:exit_server(614)</p></blockquote>
<p>although the user was able to connect from a different PC with a different operating system.</p>
<p>I found this <a title="Windws 7 samba connection problem" href="http://www.builderau.com.au/blogs/viewblogpost.htm?p=339270746" target="_blank">great solution for the samba connection problem</a>,</p>
<p>and to break it to a few simple steps:</p>
<ol>
<li>from the run command or from a cmd window run secpol.msc</li>
<li>go to &#8220;Local Policies&#8221; -&gt; &#8220;Security Options&#8221; -&gt; &#8220;Network Security: LAN Manager authentication level&#8221;</li>
<li>change to &#8220;LM and NTLM – use NTLMV2 session security if negotiated&#8221;</li>
<li>Press the OK button</li>
</ol>
<p>This solution worked just fine on a fresh windows 7 install.</p>
<p><a href="http://www.amazon.com/Using-Samba-Print-Server-Linux/dp/0596007698%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596007698"><img src="http://ecx.images-amazon.com/images/I/41ZEKVkT%2BWL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Samba-3-Example-Practical-Successful-Deployment/dp/013188221X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D013188221X"><img src="http://ecx.images-amazon.com/images/I/31KnG3l2jmL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Windows-Inside-Out-Ed-Bott/dp/0735626650%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0735626650"><img src="http://ecx.images-amazon.com/images/I/51bKPugycHL._SL160_.jpg" alt="" /></a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/desktop' rel='tag' target='_self'>desktop</a>, <a class='technorati-link' href='http://technorati.com/tag/samba' rel='tag' target='_self'>samba</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=276&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/solution-for-windows-7-samba-connection-problem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Debug Samba Server and solve user connection problems</title>
		<link>http://yonitg.com/howto-debug-samba-server/</link>
		<comments>http://yonitg.com/howto-debug-samba-server/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 22:13:12 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=269</guid>
		<description><![CDATA[Samba is the server used to share files from a Linux server to the rest of the windows clients in an office, it is  an easy to use server with simple defaults that will make the integration easy into any domain, you can find on the samba main site some configurations samples and newer smb.conf [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-272" title="samba_linux" src="http://yonitg.com/blog/wp-content/uploads/2009/08/samba_linux.gif" alt="samba_linux" width="251" height="122" /></p>
<p>Samba is the server used to share files from a Linux server to the rest of the windows clients in an office,<br />
it is  an easy to use server with simple defaults that will make the integration easy into any domain,<br />
you can find on the samba main site some <a title="Samba smb.conf samples" href="http://us3.samba.org/samba/docs/man/Samba-Guide/" target="_blank">configurations samples</a> and <a title="newer smb.conf examples" href="http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/FastStart.html#id2554224" target="_blank">newer smb.conf samples</a> to help ease the server into the domain.</p>
<p>But the harder part after setting the server is debugging problems with it,<br />
like a user permission problem &#8211; can the user authenticate to the Microsoft domain server?<br />
maybe he has a password problem? maybe he doesn&#8217;t have permission to access the share?</p>
<p><span style="text-decoration: underline;"><strong>Setting up samba logging:</strong></span></p>
<p>For starters you will find all the config files are at /etc/smb<br />
the main config file is smb.conf,<br />
other important files are smbusers and smbpasswd,<br />
smbusers is a mapping file, to mask windows user as a linux user for access.</p>
<p>Now first thing to do when debugging is to setup the logging well,<br />
so these are good log settings in the /etc/samba/smb.conf for debugging of the samba service:</p>
<blockquote><p><span style="color: #000000;">log file = /var/log/samba/%m.log<br />
syslog = 0<br />
log level = 3 passdb:0 auth:0 winbind:0 vfs:0<br />
vfs objects = full_audit</span></p></blockquote>
<ul>
<li>log file = /var/log/samba/%m.log                             the %m is substituted for the machine name.</li>
</ul>
<ul>
<li>syslog = 0                                                                             0 means only LOG_ERR will be sent to the syslog,<br />
If you want more info to be sent there change it to 3</li>
</ul>
<ul>
<li>log level = 3 passdb:0 auth:0 winbind:0 vfs:0        gives better control over which options to log</li>
</ul>
<ul>
<li>vfs objects = full_audit                                                  this allows for full details on which files are accessed by whom.</li>
</ul>
<p>With this configuration all the machines log files will be found under /var/log/samba/*.log<br />
for a sample, if you been trying to connect to the samba server from a machine named &#8220;boo1&#8243;<br />
you should see in the log folder: /var/log/samba/boo1.log</p>
<p>You can search inside the folder by using “ls –latr” to find the newest files,<br />
which will mean the windows clients that have been trying to connect to te samba server.</p>
<p>And “tail -100 machine_name.log” to view the errors you got if you couldn’t access the share.</p>
<p><span style="text-decoration: underline;"><strong>Real life Debug sample:</strong></span></p>
<p>from the file temp1.log:</p>
<blockquote><p><span style="color: #000000;">nmbd/service.c:make_connection_snum(314)<br />
user &#8216;temp1&#8242; (from session setup) not permitted to access this share (share2)</span></p></blockquote>
<p>This error means to that your user is known as temp1,<br />
and temp1 doesn’t have permission to access the share “share2”<br />
in which case you need to open the smb.conf and setup the permissions<br />
for the user on this share to allow him access.</p>
<p>Inside smbusers you can map windows users to a specific unix user with this syntax:<br />
unix_user = MY_DOMAIN\windows_user1 MY_DOMAIN\windows_user2 MY_DOMAIN\windows_user3</p>
<p>And then allow access to shares in the config by using the unix name:<br />
valid users = unix_user</p>
<p>Checking access to the server and listing shares on it from commend line:</p>
<blockquote><p><span style="color: #000000;">smbclient -L //server -U windows_user</span></p></blockquote>
<p>You will be prompt for password, and if the settings are good, you will receive the shares listing from the server.</p>
<p>Connecting to a share on the server:<br />
smbclient  //server/share -U windows_user</p>
<p>after answering the password you get a command line much like ftp:</p>
<p>smbclient //server/share -U builder<br />
Password:<br />
Domain=[MY_DOMAIN] OS=[Unix] Server=[Samba 3.0.33-3.7.el5_3.1]<br />
smb: \&gt;</p>
<p><span style="text-decoration: underline;"><strong>mounting windows share on linux from fstab</strong>:</span></p>
<p>This will allow for automatic mount in case of server reboot:</p>
<blockquote><p><span style="color: #000000;">\\server\share /unix_location  smbfs  credentials=/etc<span style="text-decoration: underline;"><strong>/</strong></span>samba.sharepasswd,uid=unix_user,gid=unix_group,ip=192.168.0.1,lfs 0 0</span></p></blockquote>
<p>Contents of /etc/samba/.sharepasswd should be windows user and password to connect to the share:</p>
<blockquote><p><span style="color: #000000;">username=windows_user</span></p>
<p><span style="color: #000000;">password=windows_pass</span><span style="text-decoration: underline;"><strong> </strong></span></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Getting info from a windows domain controller for samba debugging:</strong></span></p>
<p>To list all the windows domain users from linux command line:</p>
<blockquote><p><span style="color: #000000;">net rpc username -S icq-mdc1</span></p></blockquote>
<p>replace &#8220;username&#8221; with a valid windows user name, to list all the users in the server,<br />
you will need to know the user password as well.</p>
<p><span style="color: #000000;">This command can list the user groups from the domain controller:</span></p>
<blockquote><p><span style="color: #000000;">net rpc user INFO username -S domain-server-name</span></p></blockquote>
<p>replace &#8220;username&#8221; with a valid windows user name.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/samba' rel='tag' target='_self'>samba</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=269&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/howto-debug-samba-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache and MySQL on windows</title>
		<link>http://yonitg.com/apache-mysql-php-perl-windows/</link>
		<comments>http://yonitg.com/apache-mysql-php-perl-windows/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 21:32:23 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=87</guid>
		<description><![CDATA[Although I'm a great Linux fan, i still have Windows on my personal computer, since the computer is not used by me alone, and although i have various Linux OS installed on this same computer, most of the time its on the windows mode. so what do i do when i need to test something on wordpress or mediawiki?

For that reason i needed a development environment on my home computer that will run Apache, MySQL, php and Perl. There are some ways to go about that - i could have installed Cygwin, which is a Linux-like environment for windows.

Another way to go about it is to install the windows version Apache and mysql and php and perl.

These two options are fine solutions but they will need some more work on them , other then the point and click option which is xampp.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-88" title="xampp apache and mysql on windows" src="http://yonitg.com/blog/wp-content/uploads/2009/04/1240.jpg" alt="xampp apache and mysql on windows" width="200" height="59" /></p>
<p>Although I&#8217;m a great Linux fan, i still have Windows on my personal computer, since the computer is not used by me alone, and although i have various Linux OS installed on this same computer, most of the time its on the windows mode. so what do i do when i need to test something on wordpress or mediawiki?</p>
<p>For that reason i needed a development environment on my home computer that will run Apache, MySQL, php and Perl. There are some ways to go about that &#8211; i could have installed <a title="cygwin - linux on windows" href="http://www.cygwin.com/">Cygwin</a>, which is a Linux-like environment for windows.</p>
<p>Another way to go about it is to install the windows version <a title="download apache for windows" href="http://httpd.apache.org/download.cgi">Apache</a> and <a title="mysql for windows" href="http://dev.mysql.com/downloads/mysql/5.1.html#win32">mysql</a> and <a title="php for windows" href="http://www.php.net/downloads.php">php</a> and <a title="perl for windows" href="http://www.perl.com/download.csp#win32">perl</a>.</p>
<p>These two options are fine solutions but they will need some more work on them , other then the point and click option which is <a title="xampp - apache, mysql, perl and php for windows." href="http://www.apachefriends.org/en/xampp.html">xampp</a>.<br />
xampp for windows version 1.7.1 on default will include all of these:</p>
<ul>
<li>Apache HTTPD 2.2.11 + Openssl 0.9.8i</li>
<li>MySQL 5.1.33</li>
<li>PHP 5.2.9</li>
<li>phpMyAdmin 3.1.3.1</li>
</ul>
<p>and if you want to can add Perl 5.10.0-2.2.11 from their Add-Ons page.</p>
<p>The install process is a next,next,next version of a regular windows install, and in the the end you have everything installed into the default location at C:\xampp.</p>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2009/04/xampp_panel.jpg"><img class="alignnone size-full wp-image-93" title="xampp control panel" src="http://yonitg.com/blog/wp-content/uploads/2009/04/xampp_panel.jpg" alt="xampp control panel" width="445" height="358" /></a></p>
<p>This is the windows control panel that stops and starts the Apache and MySQL for you if you don want to install them as services, personally i prefer to start them when I&#8217;m developing since they are resource heavy applications.</p>
<p>Some default file locations:<br />
the html and php files are installed to C:\xampp\htdocs<br />
Perl scripts should be placed here: C:\xampp\cgi-bin<br />
the php.ini (php config file) can be found at: C:\xampp\apache\bin\php.ini<br />
httpd.conf (apache config file) is located in: C:\xampp\apache\conf</p>
<p>Note that for Unix Perl scripts you need to replace the first line with the location of the Perl binary on your windows, so it should look like:<br />
#!&#8221;C:\xampp\perl\bin\perl.exe&#8221;</p>
<p>Another not is that the xampp on default is set to work with php 5 , but you can from the xampp configure page which is at http://localhost/xampp/ , use the &#8220;PHP switcher&#8221; and change the install to work with php 4 instead.</p>
<p>And that&#8217;s it &#8211; your local development website is ready and is available at: http://localhost/ to play with.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/apache' rel='tag' target='_self'>apache</a>, <a class='technorati-link' href='http://technorati.com/tag/desktop' rel='tag' target='_self'>desktop</a>, <a class='technorati-link' href='http://technorati.com/tag/perl' rel='tag' target='_self'>perl</a>, <a class='technorati-link' href='http://technorati.com/tag/php' rel='tag' target='_self'>php</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=87&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/apache-mysql-php-perl-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
