<?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>WPKG BlogSamba &#187;</title> <atom:link href="http://blog.wpkg.org/category/samba/feed/" rel="self" type="application/rss+xml" /><link>http://blog.wpkg.org</link> <description>a technical IT blog</description> <lastBuildDate>Tue, 06 Dec 2011 13:25:58 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Accessing Windows console remotely from Linux</title><link>http://blog.wpkg.org/2008/06/15/accessing-windows-console-remotely-from-linux/</link> <comments>http://blog.wpkg.org/2008/06/15/accessing-windows-console-remotely-from-linux/#comments</comments> <pubDate>Sun, 15 Jun 2008 20:13:24 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[All articles]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Samba]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://blog.wpkg.org/?p=21</guid> <description><![CDATA[Have you ever needed to execute a command or to connect to an interactive text console on a remote Windows station? Probably several times, and usually, you had to log in using either VNC or RDP (Remote Desktop Protocol &#8211; Microsoft Terminal Services). If you&#8217;re used to SSH, you may wonder why the overhead of a [...]]]></description> <content:encoded><![CDATA[<p>Have you ever needed to execute a command or to connect to an interactive text console on a remote Windows station?</p><p>Probably several times, and usually, you had to log in using either VNC or RDP (Remote Desktop Protocol &#8211; Microsoft Terminal Services). If you&#8217;re used to SSH, you may wonder why the overhead of a complete desktop is needed just to start a few text commands.<br /> Of course, there are free and commercial SSH servers for Windows, but one problem with them is that they have to be installed separately. Which may be too much work for a one-off task now and then. Are there any other methods of accessing a remote Window text console from your Linux station?</p><p><span id="more-21"></span></p><p>But hey, here comes <a rel="nofollow" href="http://eol.ovh.org/winexe/">winexe</a> to the rescue! Below, accessing Windows CLI from Linux remotely (using a Windows domain account):</p><p><a href="http://blog.wpkg.org/wp-content/uploads/2008/05/winexe.png"><img class="alignnone size-medium wp-image-24" title="winexe on Linux" src="http://blog.wpkg.org/wp-content/uploads/2008/05/winexe-300x206.png" alt="winexe on Linux" width="300" height="206" /></a><a href="http://blog.wpkg.org/wp-content/uploads/2008/05/winexe.png"> </a></p><p>From the project&#8217;s page, &#8220;<em><strong>winexe</strong> remotely executes commands on WindowsNT/2000/XP/2003 systems from GNU/Linux (probably also other Unices capable to compile Samba4)</em>&#8220;.</p><p>Some notes:</p><ul><li>note that winexe doesn&#8217;t offer encryption of any kind &#8211; you may want to use VPN to make sure your connection is secure,</li><li>if your distribution doesn&#8217;t offer a packaged version of winexe (most distributions don&#8217;t), winexe homepage offers a static binary; on the other hand if you have a recent Linux distribution, the static binary will most probably not work for you &#8211; in that case, just build the tool from source,</li><li>you can use winexe in your Linux scripts &#8211; this way, you may execute certain tasks on your Linux machines, other tasks on your Windows machines &#8211; all that as a part of one bigger task / script,</li><li>winexe can be seen as a Linux equivalent of psexec (a similar tool available for Windows).</li></ul><p>Useful examples:</p><ul><li>See the list of processes / logged in users. Useful if you want to log in via RDP but don&#8217;t want to interrupt user session. Useful in a script, to check more workstations.</li></ul><p><code>winexe --system -U 'DOMAIN\Administrator%password' //192.168.10.21 "tasklist /V"</code></p><ul><li>Start cmd.exe console:</li></ul><p><code>winexe --system -U 'DOMAIN\Administrator%password' //192.168.10.21 cmd.exe</code></p> ]]></content:encoded> <wfw:commentRss>http://blog.wpkg.org/2008/06/15/accessing-windows-console-remotely-from-linux/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Samba says: client-error-not-authorized</title><link>http://blog.wpkg.org/2007/09/20/samba-says-client-error-not-authorized/</link> <comments>http://blog.wpkg.org/2007/09/20/samba-says-client-error-not-authorized/#comments</comments> <pubDate>Thu, 20 Sep 2007 19:18:58 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[All articles]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Samba]]></category><guid isPermaLink="false">http://blog.wpkg.org/?p=6</guid> <description><![CDATA[Today I noticed non-admin users can&#8217;t print on a new Samba server. Samba log for a given host would just say: client-error-not-authorized. Turned out, it&#8217;s a CUPS configuration problem, so let&#8217;s write a short article about it. Normally one configures Samba to use a CUPS  server running on the same host. When a user wants [...]]]></description> <content:encoded><![CDATA[<p>Today I noticed non-admin users can&#8217;t print on a new Samba server. Samba log for a given host would just say: <code>client-error-not-authorized</code>. Turned out, it&#8217;s a CUPS configuration problem, so let&#8217;s write a short article about it.</p><p>Normally one configures Samba to use a CUPS  server running on the same host. When a user wants to print anything, Samba uses a username/password to access the CUPS server. After authorization checks are successful, Samba connects to CUPS as root, and thus, bypasses all security checks (they were done just a while ago with username/password).</p><p><span id="more-6"></span><br /> So, if a CUPS server requires authentication, including for jobs scheduled from a localhost, printing from Windows clients will most likely fail. This is because Samba, as a CUPS client, runs on a localhost.<br /> Of course, a change to allow printing from a localhost is trivial &#8211; just add or uncomment <code>Allow localhost</code> in <code>&lt;Location /&gt;</code> section of <code>/etc/cups/cupsd.conf</code>. Some distros will have this as a default setting (Debian seems to be more restrictive though).</p><p>What if we want to allow everyone to print from the localhost, but require credentials from all other hosts? Well, here it is:</p><p><code><br /> # Restrict access to the server...<br /> &lt;Location /&gt;<br /> AuthType Basic<br /> Require valid-user<br /> </code><br /> <code><br /> Order deny,allow<br /> Deny all<br /> Allow localhost<br /> </code><br /> <code><br /> Satisfy any<br /> &lt;/Location&gt;<br /> </code></p> ]]></content:encoded> <wfw:commentRss>http://blog.wpkg.org/2007/09/20/samba-says-client-error-not-authorized/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The smallest Windows domain controller on Earth</title><link>http://blog.wpkg.org/2007/09/20/the-smallest-windows-domain-controller/</link> <comments>http://blog.wpkg.org/2007/09/20/the-smallest-windows-domain-controller/#comments</comments> <pubDate>Thu, 20 Sep 2007 18:11:40 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[All articles]]></category> <category><![CDATA[Embedded]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Samba]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://blog.wpkg.org/?p=4</guid> <description><![CDATA[For some time, I&#8217;ve been playing with Debian on Freecom FSG-3. The device is quite cool &#8211; a size of a book, with built-in HDD, 4 ethernet ports, 4 USB ports, 64 MB RAM, and 266 MHz Intel XScale CPU (ARM). With these specs, it&#8217;s more powerful than some smaller servers from the late 1990s.Why [...]]]></description> <content:encoded><![CDATA[<table style="text-align: left; width: 100%" border="0"><tr><td style="width: 5%"><a href="http://blog.wpkg.org/2007/09/20/the-smallest-windows-domain-controller/fsg-3/" rel="attachment wp-att-5" title="FSG-3"><img src="http://blog.wpkg.org/wp-content/uploads/2007/09/fsg-3.thumbnail.jpg" alt="FSG-3" /></a></td><td>For some time, I&#8217;ve been playing with <a href="http://wpkg.org/index.php/Running_Debian_on_Freecom_FSG-3">Debian on Freecom FSG-3</a>. The device is quite cool &#8211; a size of a book, with built-in HDD, 4 ethernet ports, 4 USB ports, 64 MB RAM, and 266 MHz Intel XScale CPU (ARM). With these specs, it&#8217;s more powerful than some smaller servers from the late 1990s.</td></tr></table><p>Why not run a full blown Windows domain controller for a group of small office branches?</p><p><span id="more-4"></span></p><p>In fact, we deployed such a setup in a <a href="http://syneticon.net">company I work for</a>. Each branch office has a FSG-3, which runs the following:</p><ul><li><a href="http://samba.org" rel="nofollow">Samba</a> as a Windows domain controller,</li><li><a href="http://openldap.org" rel="nofollow">OpenLDAP</a> to sync users between the branches,</li><li><a href="http://cups.org" rel="nofollow">CUPS</a> for printing,</li><li><a href="http://openvpn.net" rel="nofollow">OpenVPN</a> to secure communication between the branches,</li><li><a href="http://wpkg.org">WPKG</a> for software deployment,</li><li><a href="http://unattended.sf.net" rel="nofollow">Unattended</a> for initial Windows deployment,</li><li><a href="http://wpkg.org/Configuring_ISDN_%28dialin%2C_dialout%29_from_command_line">ISDN dialin</a> &#8211; in case a remote DSL dies, we can always log in using a ISDN telephone line,</li><li>of course, other Linux goodies offered by Debian.</li></ul><p>Works great &#8211; the solution is really flexible, there is no need to place a traditional PC-server anymore, and moreover, we didn&#8217;t have to pay a dime for a Windows Server license.</p> ]]></content:encoded> <wfw:commentRss>http://blog.wpkg.org/2007/09/20/the-smallest-windows-domain-controller/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/7 queries in 0.001 seconds using disk: basic
Object Caching 151/262 objects using disk: basic

Served from: blog.wpkg.org @ 2012-02-09 06:47:46 -->
