The current mount.cifs code does the following [1]: if (asprintf(&cmd, "/bin/systemd-ask-password \"%s\"", prompt) >= 0) { ask_pass_fp = popen (cmd, "re"); ... However, this doesn't work when systemd-ask-password isn't installed in /bin (and e.g. sits in /usr/bin). I suggest simply using 'systemd-ask-password' since all relevant paths should be in $PATH, and popen() executes the command using the shell, therefore being able to make a $PATH lookup. [1]:http://git.samba.org/?p=cifs-utils.git;a=blob;f=mount.cifs.c;h=e76beeea80dd40120501a9db966fca61436c6574;hb=HEAD#l1652
Well spotted. I agree wrt to the path. Care to propose a patch on linux-cifs mailing list?
Here you are: http://thread.gmane.org/gmane.linux.kernel.cifs/8697
Merged in mainline cifs-utils repo. It should make 6.2, but there's no ETA for that just yet...