I’m looking for a way to allow users to mount samba shares. Any samba shares. I understand it’s necessary to use something like the following to allow users to run the mount
command:
{
security.wrappers."mount.cifs" = {
program = "mount.cifs";
source = "${lib.getBin pkgs.cifs-utils}/bin/mount.cifs";
owner = "root";
group = "root";
setuid = true;
};
}
However, mounting still fails without an explicit entry in /etc/fstab
. I find that rather ridiculuous, for a mount in the user’s home directory.
The only way I am able to make it work is by using rclone
, but that doesn’t support symlinks for samba, which makes it unusable for some applications.
Is there any way to disable the need for /etc/fstab
entries?