First of all create a folder where you want to mount the shared Windows directory to:
sudo mkdir -p /mnt/win [sudo] password for atcz01admin:
Type in your password when asked to do so. Now you will need to install smbfs to be able to access the shared folder:
sudo apt-get install smbfs Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: keyutils libtalloc2 libwbclient0 samba-common samba-common-bin Suggested packages: smbclient The following NEW packages will be installed: keyutils libtalloc2 libwbclient0 samba-common samba-common-bin smbfs 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 7,831kB of archives. After this operation, 21.3MB of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://at.archive.ubuntu.com/ubuntu/ lucid/main keyutils 1.2-12 [28.2kB] Get:2 http://at.archive.ubuntu.com/ubuntu/ lucid/main libtalloc2 2.0.1-1 [20.7kB] [...] Setting up smbfs (2:3.4.7~dfsg-1ubuntu3.8) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place
Just type Y to confirm the installation of the new packages. Afterwards you can instantly mount the share:
sudo mount -t smbfs -o username=ATCZ01admin,password=*** //atser003/c$/Buffer /mnt/win
Therefore you will need a Windows user who has access rights to this folder and the Uniform Naming Convention (UNC network) path. This will be exactly the same as inside the Windows network, except that the backslashes (\) have to be changed to slashes (/) for Linux. Finally you can navigate to the mounted folder and access its content:
cd /mnt/win ls –l total 5060240 -rwxr-xr-x 1 root root 100010496 2010-12-13 16:12 20101213_Ebanking_Backup drwxr-xr-x 1 root root 0 2007-08-27 13:02 Adobe -rwxr-xr-x 1 root root 4447744 2007-06-06 09:42 apache_2.2.4-win32-x86-no_ssl.msi [...]
You will take over the access rights of the Windows user you have provided within the mount command.