On Sun, 10 Dec 2000, David Krovich wrote: > I just recently got smbmount and automount working together. > Everything works great except for the problem that I had to put my > username and password in plain text in a file for it to be able to > smbmount directories. This is fine for a single user using a single > machine. However, I would like to deploy it such a way that when a > user changes directory to do an automount using smbmount, automount > determines the current user id, and then prompts them for a password to > smbmount the requested CIFS share. The problem with this in a multiuser environment is that a single smbfs mount represents a single user to the other side. This could probably be changed so that smbfs would manage multiple connections, one per active user. Depending on who accesses the mountpoint first you'd get different access rights if you have multiple users. It's very much a single user filesystem. > Can this be done? To make autofs ask this you need to make a module for autofs. One problem is where to send the question. The program accessing the mountpoint could be a cron job or something with no terminal to send the question too. automount itself is a daemon. Someone did a pam module that would store your user/pass from login and use that when mounting smbfs (not sure how that works but see http://bazar.conectiva.com.br/~epx/pam_mount). If you don't have multiple users at once this may be good enough. Other ways to do this is to have multiple automount maps (one per user) or make smbmnt and smbumount setuid root and allow normal users to mount and umount some things. /Urban
