How to mount a Windows share in user space?
Using Files app and navigating to \\server\share
works fine. I can do whatever I want provided I have permissions. However the smb://....
mount that creates can’t be used from terminal shell.
I figured out I can do:
mkdir ~/mnt/media
sudo mount -t cifs -o username={me} //server/media ~/mnt/media
ls ~/mnt/media/
...etc
…but everything is read-only regardless of what my Windows permissions are.
I tried to use mount without sudo but am told:
This program is not installed setuid root - “user” CIFS mounts not supported.
LLMs tell me:
If you absolutely need user mounts and understand the security implications, you can set the setuid bit as follows:
sudo chmod u+s /bin/mount sudo chmod u+s /bin/umount sudo chmod u+s /usr/sbin/mount.cifs
…but:
❯ sudo chmod u+s /bin/mount
chmod: changing permissions of '/bin/mount': Read-only file system
So what can I do?