Slackware, Fedora, Red Hat, Open Source, Perl, PHP, MySQL, and other junk.

Accessing Windows shares from Linux

1) Make sure you have windows username and password to access share name

2) Login to Linux as a root user (or use su command)

3) Create the required mount point:

# mkdir -p /mnt/ntserver
4) Use the mount command as follows:
# mount -t smbfs -o username=vivek,password=D1W4×9sw //ntserver/download /mnt/ntserver
5) Access Windows 2003/2000/NT share using cd and ls command:
# cd /mnt/ntserver; ls -l
Where,

  • -t smbfs : File system type to be mount
  • -o : are options passed to mount command, in this example I had passed two options. First argument is password (vivek) and second argument is password to connect remote windows box
  • ntserver/download : Windows 2000/NT share name * /mnt/ntserver Linux mount point (to access share after mounting)