We have a file server on Ubuntu Server 16.04 using Samba which uses an external LDAP server for authentication. Additionally, the LDAP server has an automount definition for the file server's Samba shares (with automountInformation: -fstype=cifs,rw,username=& ://fileserver/share/&
) and tested working.
On our web server, we are automatically mounting the above mentioned shares. The problem is that when users cd
into their shared home they will get a Please enter password with the systemd-tty-ask-password-agent tool!
over Wall.
I've looked up that error message, and it seems that the "solution" is that users need to enter their password in another terminal session, which is not acceptable in our situation. After experimenting a bit with a colleague, and some reading around, we've found that restarting the autofs service twice will bring the password prompt to the current console. However, that is further unacceptable because autofs needs to be restarted twice (did I mention that requires sudo access?) for every password prompt (for every user).
Apologies for the long introduction. My question is, in our current setup is there any way we can have the systemd-tty-ask-password-agent
tool prompt the users for their password on the same terminal session?