Accessing Windows Shares under Linux


This article covers how to access a Windows Share under Linux Operation System.

To access Windows share under Linux follow these steps. These steps assume you have root (administrator), or sudo access.

1. sudo mkdir /mnt/<NID>

2. sudo mount -t cifs //<full server name>/<share name> /mnt/<NID> -o user=<NID>

The first command creates a location under which the share will be mounted; that is, where it will be locally accessible. The second command will mount the share under "/mnt/<NID>" and its contents will be accessible by the <NID>, as permitted by permissions granted on the Windows share.

To cease access to the share, simply run:

sudo umount /mnt/<share name>

while not in the actual /mnt/<share name>

Notes on un-mounting a share:

Additional notes: