Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

smbclient tree connect failed nt_status_bad_network_name when folder exists

When i try to enter in a specific folder in windows from samba there is always the same error, can someone please help

with error:

smbclient //CLOUDBOX/team/PS -Uuser%pass -c pwd
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.25]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

without error:

smbclient //CLOUDBOX/team/ -Uuser%pass -c pwd
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.25]
Current directory is \\SBSS-CLOUDBOX\team\
like image 240
Pedro Sousa Avatar asked Aug 30 '17 13:08

Pedro Sousa


1 Answers

I've found the answer you need to put the parameter -D, like this:

smbclient //CLOUDBOX/team/ -D "PS" -Uuser%pass -c pwd
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.25]
Current directory is \\SBSS-CLOUDBOX\team\PS
like image 182
Pedro Sousa Avatar answered Sep 28 '22 18:09

Pedro Sousa