Accessing SMB shares

linux-penguinYou can access SMB shares in an Active Directory domain and map them to an existing local directory and the share will appear to be on the local file system.


  1. sudo mkdir -p /mnt/newShare
  2. sudo vi /etc/fstab
    1. Add the following as a single line...
    2. //smbServer/newShare /mnt/newShare smbfs auto,credentials=/root/.credentials,uid=1000,umask=000,user 0 0
  3. sudo vi /root/.credentials
    1. Add the following 2 lines...
    2. username=yourDomainName
    3. password=yourpassword
  4. sudo chmod 600 /root/.credentials
  5. sudo mount /mnt/newShare


Thanks for visiting,