<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Wed Jun 19, 2013 6:41 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed Jun 19, 2013 6:41 am</pubDate>
  <lastBuildDate>Wed Jun 19, 2013 6:41 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Pretty slick, huh? (No!)</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=8507#8507</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Sep 13, 2005 9:14 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;grep ^kenmyer&amp;#58; /etc/passwd | cut -d&amp;#58; -f3&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
although it's even easier with&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;id -u kenmyer&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=8507#8507</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Sep 13, 2005 9:14 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=8507#8507</guid>
                                      </item>
                                      <item>
                                        <title>Re: Pretty slick, huh? (No!)</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=8503#8503</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=25'&gt;M0PHP&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Sep 13, 2005 7:59 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      But you could argue that &quot;Wscript.Echo objAccount.SID&quot; gets the actual SID, whereas the grep command you quoted gets the whole line of the *nix username.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=8503#8503</comments>
                                        <author>M0PHP</author>
                                        <pubDate>Tue Sep 13, 2005 7:59 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=8503#8503</guid>
                                      </item>
                                      <item>
                                        <title>Pretty slick, huh? (No!)</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=8500#8500</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2827'&gt;overflow&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Sep 13, 2005 6:44 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Unfortunately, in my work, I come into constant contact with Windows, which I find increasingly troublesome. Today, I needed to find out who a SID belonged to. A SID, if you don't know, is a complex string that uniquely identifies a user - globally.  A bit like uid numbers in Unix.&lt;br /&gt;
&lt;br /&gt;
Anyway, I needed to find the owner of a SID and so after a bit of a hunt, I came across this on MS TechNet's Script Guy site which, although back-to-front, would allow me to get there.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Technet wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;strComputer = &amp;quot;.&amp;quot;&lt;br /&gt;
Set objWMIService = GetObject&amp;#40;&amp;quot;winmgmts&amp;#58;\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\cimv2&amp;quot;&amp;#41;&lt;br /&gt;
&lt;br /&gt;
Set objAccount = objWMIService.Get _&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#40;&amp;quot;Win32_UserAccount.Name='kenmyer',Domain='atl-ws-01'&amp;quot;&amp;#41;&lt;br /&gt;
Wscript.Echo objAccount.SID&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
Pretty slick, huh?&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
No!&lt;br /&gt;
&lt;br /&gt;
Absolutely horrible!.&lt;br /&gt;
&lt;br /&gt;
What a revolting, unmemorable, twisted mess.&lt;br /&gt;
&lt;br /&gt;
Try this:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;grep &amp;quot;^kenmyer&amp;#58;&amp;quot; /etc/passwd&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Which is slicker, Script Guy?</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=8500#8500</comments>
                                        <author>overflow</author>
                                        <pubDate>Tue Sep 13, 2005 6:44 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=8500#8500</guid>
                                      </item></channel></rss>