<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Aber nicht mit dem comm@nder! - Shell</title>
    <link>http://blog.commandersfactory.de/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4 - http://www.s9y.org/</generator>
    <pubDate>Tue, 24 Feb 2009 11:17:58 GMT</pubDate>

    <image>
        <url>http://blog.commandersfactory.de/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Aber nicht mit dem comm@nder! - Shell - </title>
        <link>http://blog.commandersfactory.de/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Back to Bash</title>
    <link>http://blog.commandersfactory.de/archives/24-Back-to-Bash.html</link>
            <category>Linux</category>
            <category>MacosX</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/24-Back-to-Bash.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=24</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    &lt;p&gt;Ich werde mich vorerst wieder von der Zsh als Standardshell hin zur Bash bewegen. Das hat nichts damit zu tun, dass die Zsh irgendwie schlechter ist als die Bash. Mich trieben vor allem folgende Gründe:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Herdentrieb&lt;/strong&gt;: Eigentlich nutzen fast alle in meinem persönlichen Umfeld die Bash, und ich hab nicht die Zeit und Muse hier als Missionar anzutreten.&lt;/li&gt;

  &lt;li&gt;
    &lt;strong&gt;Nutzlosigkeit&lt;/strong&gt;: Eigentlich habe ich die zusätzlichen Feature, die die Zsh ja nun ohne Frage bietet, nie bewusst genutzt. Eigentlich unterscheiden sich meine rc-Files nur in zwei Sachen:

    &lt;ul&gt;
      &lt;li&gt;Promptdefinition: Der Prompt bietet einige Möglichkeiten mehr als in der Bash. Genutzt habe ich vor allem die Anzeige des Rückgabewert des letzten Befehls und die Möglichkeit, das aktuell genutzte Terminal anzuzeigen. Ich werde mal nach Möglichkeiten suchen, das auch in der Bash hinzubekommen. Na ja gut, die Nutzung von Farben ist standardmäßig auch einfach in der Zsh.&lt;/li&gt;

      &lt;li&gt;REPORTTIME: Eine schöne Spielerei&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;

  &lt;li&gt;&lt;strong&gt;&quot;Eh schon da&quot;&lt;/strong&gt;: Die Bash ist auf den allermeisten System (im Gegensatz zu Zsh) schon installiert. Und nicht überall hab ich Admin-Rechte, so dass ich mir eine Zsh nachinstallieren kann.&lt;/li&gt;

  &lt;li&gt;&lt;strong&gt;Bash V4&lt;/strong&gt;: Passt wie die Faust aufs Auge: Die Bash ist in V4 mit einer Menge &lt;a href=&quot;http://tiswww.case.edu/php/chet/bash/NEWS&quot; title=&quot;Bash Changelog&quot;&gt;neuer Feature&lt;/a&gt; erschienen.&lt;/li&gt;
&lt;/ul&gt;
 
    </content:encoded>

    <pubDate>Tue, 24 Feb 2009 12:16:21 +0100</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/24-guid.html</guid>
    <category>bash zsh shell macosx linux</category>
<category>MacosX</category>
<category>Shell</category>

</item>
<item>
    <title>Read Mail Really Fast  </title>
    <link>http://blog.commandersfactory.de/archives/23-Read-Mail-Really-Fast.html</link>
            <category>Linux</category>
            <category>MacosX</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/23-Read-Mail-Really-Fast.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=23</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    &lt;p&gt;Irgendwie hat mich dieser Befehl in letzter Zeit ... &lt;img src=&quot;http://blog.commandersfactory.de/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Tip für alle &quot;Andere-Leute-speziell-irgendwelche-Kackb00ns-Ärgerer&quot;:&lt;/p&gt;
&lt;pre&gt;
rm -rf --no-preserve-root /
&lt;/pre&gt;sonst bekommt man nämlich nur noch ein
&lt;pre&gt;
/bin/rm: cannot remove root directory `/&#039;
&lt;/pre&gt;
 
    </content:encoded>

    <pubDate>Mon, 16 Feb 2009 07:49:14 +0100</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/23-guid.html</guid>
    <category>MacosX</category>
<category>Shell</category>

</item>
<item>
    <title>Mysteriös</title>
    <link>http://blog.commandersfactory.de/archives/22-Mysterioes.html</link>
            <category>23</category>
            <category>Linux</category>
            <category>Lustiges</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/22-Mysterioes.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    &lt;pre&gt;
rm -rf /
&lt;/pre&gt;&lt;strong&gt;R&lt;/strong&gt;obert &lt;strong&gt;M&lt;/strong&gt;üller -&lt;strong&gt;R&lt;/strong&gt;obert &lt;strong&gt;F&lt;/strong&gt;rießleben /
 
    </content:encoded>

    <pubDate>Wed, 11 Feb 2009 15:54:14 +0100</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/22-guid.html</guid>
    <category>Shell</category>

</item>
<item>
    <title>Dinge, die man gerne immer wieder vergisst II</title>
    <link>http://blog.commandersfactory.de/archives/20-Dinge,-die-man-gerne-immer-wieder-vergisst-II.html</link>
            <category>Linux</category>
            <category>MacosX</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/20-Dinge,-die-man-gerne-immer-wieder-vergisst-II.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=20</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    &lt;p&gt;Heute: Sudo und Umleitungsoperatoren: Da es immer wieder gerne falsch gemacht wird:&lt;/p&gt;
&lt;pre&gt;sudo cat /irgendeine/datei &amp;gt; /etc/die_darf_nur_root_schreiben&lt;/pre&gt;
&lt;p&gt;Das sudo bezieht sich nur auf das cat nicht auf den Umleitungsoperator &amp;gt;! Korrekterweise muß es also lauten:&lt;/p&gt;
&lt;pre&gt;sudo sh -c &#039;cat /irgendeine/datei &amp;gt; /etc/die_darf_nur_root_schreiben&#039;&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Fri, 16 Jan 2009 08:09:24 +0100</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/20-guid.html</guid>
    <category>MacosX</category>
<category>Shell</category>

</item>
<item>
    <title>chsh -s /bin/zsh</title>
    <link>http://blog.commandersfactory.de/archives/19-chsh-s-binzsh.html</link>
            <category>Linux</category>
            <category>Shell</category>
            <category>Software</category>
    
    <comments>http://blog.commandersfactory.de/archives/19-chsh-s-binzsh.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=19</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    &lt;p&gt;Lange vorgenommen, nie wirklich durchgeführt: Meine neue Defaultshell wird vorerst mal die &lt;a href=&quot;http://www.zsh.org/&quot; title=&quot;zsh&quot;&gt;zsh&lt;/a&gt; werden. Meine erste .zshrc ist zusammengestückelt ... Schaumermal.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Tue, 14 Oct 2008 14:35:28 +0200</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/19-guid.html</guid>
    <category>Shell</category>
<category>Software</category>

</item>
<item>
    <title>Dinge, die man gerne immer wieder vergisst I</title>
    <link>http://blog.commandersfactory.de/archives/16-Dinge,-die-man-gerne-immer-wieder-vergisst-I.html</link>
            <category>Linux</category>
            <category>MacosX</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/16-Dinge,-die-man-gerne-immer-wieder-vergisst-I.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=16</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    &lt;p&gt;Heute: Die Reihenfolge der Einträge in /etc/sudoers ist &lt;strong&gt;wichtig&lt;/strong&gt;! siehe dazu auch man sudoers: &lt;em&gt;When multiple entries match for a user, they are applied in order. Where there are conflicting values, the last match is used (which is not necessarily the most specific match).&lt;/em&gt;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Thu, 25 Sep 2008 17:11:47 +0200</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/16-guid.html</guid>
    <category>MacosX</category>
<category>Shell</category>

</item>
<item>
    <title>Greylisting ftw!</title>
    <link>http://blog.commandersfactory.de/archives/10-Greylisting-ftw!.html</link>
            <category>Linux</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/10-Greylisting-ftw!.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    &lt;p&gt;Gestern war ich bei einem recht informativen Themenabend des &lt;a href=&quot;http://www.c3d2.de/&quot; title=&quot;Chaos Computer Club Dresden &amp;lt;&amp;lt;&amp;lt;/&amp;gt;&amp;gt;&quot;&gt;C3D2&lt;/a&gt; zum Thema Spam. Dabei kam auch durch einem der Teilnehmer die Aussage, &lt;a href=&quot;http://de.wikipedia.org/wiki/Greylisting&quot; title=&quot;Das sagt die allwissende Müllhalde zu Greylisting&quot;&gt;Greylisting&lt;/a&gt; sei nicht mehr wirksam. Das kann ich, glaub ich zumindestens, mit der folgenden Grafik entkräften.&lt;/p&gt;&lt;img width=&quot;495&quot; height=&quot;312&quot; src=&quot;http://blog.commandersfactory.de/uploads/Bilder/greylisting_funktioniert_noch.png&quot; alt=&quot;Amavis-Statistiken meines Mailservers&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;Wer errät, wann ich Greylisting aktiviert habe, bekommt einen Lolly &lt;img src=&quot;http://blog.commandersfactory.de/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;
&lt;p&gt;OK, vielleicht sollte ich noch dazuschreiben, dass ich ziemlich genau selbiges Ergebnis auch mit der Nutzung DNS-Blacklisten erreicht hätte, was ich auch mal ausprobiert habe. Meine Meinung dazu ist noch ziemlich ambivalent. Einerseits bin ich mit Greylisting unabhängig vom Spamdienstleistern wie Spamhaus.org, andererseits ist es manchmal schon etwas nervig, wenn man auf eine dringend benötigte Email länger warten muss, weil der &lt;a href=&quot;http://de.wikipedia.org/wiki/Mail_Transfer_Agent&quot; title=&quot;Mail Transfer Agent&quot;&gt;MTA&lt;/a&gt; des Senders sich ein paar (bis hin zu 24!) Stunden Zeit nimmt, es noch mal zu versuchen.&lt;/p&gt;
&lt;p&gt;Ich werde mit, wenn ich denn in den nächsten Tagen mein DNS selber in die Hand genommen habe, mich noch mal etwas mehr mit &lt;a href=&quot;http://nolisting.org/&quot; title=&quot;Greylisting für Arme :)&quot;&gt;Nolisting&lt;/a&gt; beschäftigen.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sat, 29 Mar 2008 10:19:31 +0100</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/10-guid.html</guid>
    <category>Shell</category>

</item>
<item>
    <title>Sichern und Zurückspielen von Dateiattributen und ACLs</title>
    <link>http://blog.commandersfactory.de/archives/6-Sichern-und-Zurueckspielen-von-Dateiattributen-und-ACLs.html</link>
            <category>Linux</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/6-Sichern-und-Zurueckspielen-von-Dateiattributen-und-ACLs.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=6</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    Um Dateiattribute wie Besitzer/Gruppe und deren Rechte sowie etwaig vorhandene Zugriffskontrolllisten relativ einfach zu sichern habe ich die beiden Tools &lt;em&gt;getfacl&lt;/em&gt; und &lt;em&gt;setfacl&lt;/em&gt; gefunden. Damit kann man spielend einfach rekursiv die Rechte und Besitzer aller Ordner und Dateien sichern mit &lt;em&gt;getfacl&lt;/em&gt; sowie bei Bedarf mit &lt;em&gt;setfacl&lt;/em&gt; wieder zurückspielen.

Beispiele:
&lt;pre&gt;$ sudo getfacl --recursive /etc/ &gt; /mnt/backup/etc.acl
$ grep -a5 &#039;etc/passwd&#039; /mnt/backup/etc.acl
# file: etc/passwd
# owner: root
# group: root
user::rw-
group::r--
other::r--
...
$ setfacl --restore=/mnt/backup/etc.acl
&lt;/pre&gt;

Mehr Informationen findet man natürlich in den jeweiligen man-pages. Zu finden sind diese beiden Programme im Paket &lt;em&gt;acl&lt;/em&gt;. 
    </content:encoded>

    <pubDate>Thu, 17 Jan 2008 16:34:17 +0100</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/6-guid.html</guid>
    <category>Shell</category>

</item>
<item>
    <title>Unix Timestamp mit date konvertieren</title>
    <link>http://blog.commandersfactory.de/archives/5-Unix-Timestamp-mit-date-konvertieren.html</link>
            <category>Linux</category>
            <category>MacosX</category>
            <category>Shell</category>
    
    <comments>http://blog.commandersfactory.de/archives/5-Unix-Timestamp-mit-date-konvertieren.html#comments</comments>
    <wfw:comment>http://blog.commandersfactory.de/wfwcomment.php?cid=5</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://blog.commandersfactory.de/rss.php?version=2.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    

    <author>nospam@example.com (Robert Frießleben)</author>
    <content:encoded>
    Bisher kannte ich in ja keinen direkten Weg, &lt;strong&gt;date&lt;/strong&gt; zur Umwandlung eines &lt;a href=&quot;http://de.wikipedia.org/wiki/Unixzeit&quot; title=&quot;Die Unixzeit ist eine einfache Zeitdefinition, die 1969 für das Betriebssystem Unix entwickelt und als POSIX-Standard festgelegt wurde&quot;&gt;Unix Timestamp&lt;/a&gt; in ein lesbares Format zu nutzen. Dabei geht es doch ganz einfach:

&lt;pre&gt;$ date -d @1200556317 +&quot;%s steht für %A, der %d.%B.%Y&quot;
1200556317 steht für Donnerstag, der 17.Januar.2008&lt;pre&gt; 
    </content:encoded>

    <pubDate>Thu, 17 Jan 2008 08:41:58 +0100</pubDate>
    <guid isPermaLink="false">http://blog.commandersfactory.de/archives/5-guid.html</guid>
    <category>MacosX</category>
<category>Shell</category>

</item>

</channel>
</rss>