help to access windows share from linux box

how to access windows share from a linux box

windows machin is in different workgroup so
how to pass credentials whil acessing a share from a script

Probably the fastest way is to mount the share using the cifs filesystem on Linux.
It gets accessed with a passwd, you can have passwords on a per user basis, or use LDAP (active directory).

Start here:

Linux CIFS Client (historic site)

Then follow the link back to samba for what you need.

the first problem here is to access file from a windows using local admin user account from a windows machine

existing script

 
export TEST=\\\windowsshare

is there any way to pass login credentials while exporting a path from windows from a shell script