Hi On Thursday, July 23, 2015, Jelmer Vernooij <jel...@jelmer.uk <javascript:_e(%7B%7D,'cvml','jel...@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@proxy:~$ echo $LOGNAME $USER gaochao gaochao gaochao@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@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 ===================================== -- 中砝高超