[Pkg-samba-maint] Bug#700983: Do you have LOGNAME set?

高超 achaoge at gmail.com
Thu Jul 23 04:12:08 UTC 2015


Hi

On Thursday, July 23, 2015, Jelmer Vernooij <jelmer at jelmer.uk
<javascript:_e(%7B%7D,'cvml','jelmer at jelmer.uk');>> wrote:

> smbclient actually checks LOGNAME before USER, despite what the
> documentation says. Do you happen to have LOGNAME set? Does forcing
> LOGNAME to the right value fix the issue?
>

My test case showed that USER would be checked first. Here is my test:
====================================
gaochao at proxy:~$ echo $LOGNAME $USER
gaochao gaochao
gaochao at proxy:~$ LOGNAME=gc smbclient //qinserver/gc   <- Here set
different LOGNAME
Enter gaochao's password:
Anonymous login successful
Domain=[ZFCPA] OS=[Unix] Server=[Samba 3.5.6]
tree connect failed: NT_STATUS_ACCESS_DENIED
=====================================

=====================================
gaochao at proxy:~$ USER=gc smbclient //qinserver/gc  <- Here set different
USER
Enter gc's password:
Anonymous login successful
Domain=[ZFCPA] OS=[Unix] Server=[Samba 3.5.6]
tree connect failed: NT_STATUS_ACCESS_DENIED
=====================================


-- 
中砝高超
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20150723/00d7fb8e/attachment.html>


More information about the Pkg-samba-maint mailing list