Prepending "\" to user name w/Win98 Domain Login

Jeff Mandel jeff.mandel at probes.com
Fri Aug 16 08:09:00 GMT 2002


While that was an example of how it returns with NIS, a better one might 
have been to show the lookup quoted "" - like ypmatch "\jeff" passwd, 
but I agree the escaping can be confusing and misleading with the shell 
there.

The log files excerpts and ldap lookups weren't done by shell, per se, 
but by smbd. How would the shell come into play in those instances?

Jeff

Mike Gerdts wrote:

>On Fri, 2002-08-16 at 11:21, Jeff Mandel wrote:
>  
>
>>2) The wacky thing here is that \user actually returns successful with NIS.
>>jeff at host% getent passwd jeff
>>jeff:x:6789:6789::/export/home/jeff:/bin/ksh
>>jeff at host% getent passwd \jeff
>>jeff:x:6789:6789::/export/home/jeff:/bin/ksh
>>    
>>
>
>Not quite right.  Your shell handled the "\j" and determined that it
>should have just been "j".  As such, the getent command really saw
>"jeff", not "\jeff".  The proper test would have been
>
>   jeff at host% getent passwd \\jeff
>
>In this case your shell would have translated "\\jeff" into "\jeff"
>before sending it as an argument to getent.
>
>Mike
>
>  
>






More information about the samba-technical mailing list