Dirk's Tech Findings

Alpine Linux: Mount a Samba share

Publication date: 2020-07-17

Issue: Attempting to mount Samba share fails on Alpine Linux

Attempting to mount a Samba share on Alpine Linux fails due to permission error:

mount -t cifs //192.168.1.1/myshare /home/mountdir
mount: mounting //192.168.1.1/myshare on /home/mountdir failed: Permission denied

Solution: Install cifs package

The solution is simple. The package "cifs-utils" needs to be installed. To install:

apk add cifs-utils

Now it is working:

mount -t cifs //192.168.1.1/myshare /home/mountdir

is asking for the password to use now.

Back to topic list...