Mount CIFS/SMB (Windows) Share on Linux








Install CIFS/Samba client

sudo apt-get install cifs-utils

Manual mount

  • sudo mount -t cifs -o domain=yourdomain,username=yourusername //your-cifs-server.your-domain.org/yourshare /mnt/yourshare

Auto mount

  • Create a credentials file at /etc/cifs-credentials
    domain=yourdomain
    username=yourusername
    password=yourpassword
      
  • Edit /etc/fstab as root (or sudo)
    //your-cifs-server.your-domain.org/yourshare /mnt/yourshare cifs credentials=/etc/cifs-credentials  0 0
      
  • sudo mount -a







See also




No comments:

Post a Comment