<div dir="ltr">Hi,<div>As you can see, all of them (from root) works perfectly:</div><div><br></div><div><div>[root@client ~]# <font class="Apple-style-span" color="#3333ff">ypcat passwd.byuid</font></div><div>vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash</div>
<div>[root@client ~]# <font class="Apple-style-span" color="#3366ff">ypmatch 500 passwd.byuid</font></div><div>vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash</div>
<div>[root@client ~]# <font class="Apple-style-span" color="#3366ff">getent passwd 500</font></div><div>vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash</div>
<div><br></div><div>only when I do su - vic or login as vic, then it happens..</div><div><br></div><div>Thanks,</div><div>Hetz</div><br><div class="gmail_quote">On Mon, Nov 28, 2011 at 11:31 PM, Oron Peled <span dir="ltr">&lt;<a href="mailto:oron@actcom.co.il">oron@actcom.co.il</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>
<div style="font-family:&#39;Liberation Mono&#39;;font-size:12pt;font-weight:400;font-style:normal"><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On Monday, 28 בNovember 2011 21:28:37 Hetz Ben Hamo wrote:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; ...</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; # su - vic</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; id: cannot find name for user ID 500</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; id: cannot find name for user ID 500</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; [I have no name!@client ~]$</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; $ id</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; uid=500 gid=500(vic) groups=500(vic)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023</p>
</div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; ... </p><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; but still ...</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; $ ls -la</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; total 32</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; drwx------ 2  500 vic  4096 Nov 28  2011 .</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; drwxr-xr-x 4 root root 4096 Nov 25 20:06 ..</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; -rw------- 1  500 vic   343 Nov 28  2011 .bash_history</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; -rw-r--r-- 1  500 vic    18 May 26  2011 .bash_logout</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; -rw-r--r-- 1  500 vic   176 May 26  2011 .bash_profile</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; -rw-r--r-- 1  500 vic   124 May 26  2011 .bashrc</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; -rw------- 1  500 vic   602 Nov 28  2011 .viminfo</p>
</div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; *[I have no name*!@client ~]$</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Interesting. Looks like name-&gt;uid translation works, but uid-&gt;name don&#39;t.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Maybe (for some unknown reason) the reverse NIS map is not there.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Let&#39;s debug it:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">1. First at the NIS level -- The &#39;passwd&#39; map is a shortcut to</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">   the &#39;passwd.byname&#39; map, let&#39;s test the &#39;passwd.byuid&#39; map:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">   * Enumerate:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">                ypcat passwd.byuid</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">   * Match:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">                ypmatch 500 passwd.byuid</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2. If 1. is OK, test at the NSS level:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">                getent passwd 500</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Both of these work?</p><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Oron Peled                                 Voice: <a href="tel:%2B972-4-8228492" value="+97248228492" target="_blank">+972-4-8228492</a></p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="mailto:oron@actcom.co.il" target="_blank">oron@actcom.co.il</a>                  <a href="http://users.actcom.co.il/~oron" target="_blank">http://users.actcom.co.il/~oron</a></p>

</div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">If it&#39;s there and you can see it, it&#39;s REAL</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">If it&#39;s there and you can&#39;t see it, it&#39;s TRANSPARENT</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">If it&#39;s not there and you can see it, it&#39;s VIRTUAL</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">If it&#39;s not there and you can&#39;t see it, it&#39;s GONE!</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="rtl"><div style="color:rgb(0, 0, 0);font-family:Verdana, Arial, Helvetica, sans-serif;margin-top:8px;margin-right:8px;margin-bottom:8px;margin-left:8px;background-color:rgb(255, 255, 255)">
<p dir="rtl"><strong style="font-size:10px"><span style="font-size:small"><span style="color:rgb(0, 0, 128)"><span style="color:rgb(0, 0, 0);font-weight:normal">חץ בן חמו</span><br>ח</span><span style="color:rgb(0, 0, 255)">ץ</span>-<span style="color:rgb(0, 0, 128)">ב</span><span style="color:rgb(0, 0, 255)">י</span><span style="color:rgb(51, 102, 255)">ז</span><br>
</span></strong>השכרה ואירוח של שרתים פיזיים<br>מעוניין להשתמש בשרותים שחסומים לגולש הישראלי? Hulu? NetFlix? Pandora? Google Voice? אם כן, היכנס <a href="http://vps.net.bz/?p=406" target="_blank">לכאן</a>.</p></div></div>
<br>
</div></div>