[Samba] help to get file from public share without authenticating

Rowland penny rpenny at samba.org
Tue Feb 2 16:57:37 UTC 2021


On 02/02/2021 12:11, jmpatagonia via samba wrote:
> Hello I need to help to copy file from a public share to the client, with a
> user just logon on samba 4 AD domain server.
>
> I try this, but dont work
> smbclient  //10.11.37.62/netlogon -N -g -c 'get logon_linux.sh'
> Anonymous login successful
> Domain=[POLICIA2] OS=[] Server=[]
> tree connect failed: NT_STATUS_ACCESS_DENIED
>
> I need something like this, without authenticating
> smbclient //10.11.37.62/netlogon
> Enter jcbatman1's password:
> Domain=[POLICIA2] OS=[] Server=[]
> smb: \> get logon_linux.sh
> getting file \logon_linux.sh of size 1466 as logon_linux.sh (204,5
> KiloBytes/sec) (average 204,5 KiloBytes/sec)
> smb: \>
>
> The user is correctly logged on the domain server.
> The share netlogon is public share.
>
> Regards.

Try this:

smbclient //raspberrypi/public -c 'get logon_linux.sh' -N -U\\rowland

Where 'raspberrypi' is the servers name.

Rowland





More information about the samba mailing list