<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><span>The autofs configuration below allows any user to create a .secret.txt in $HOME and then depend on the autofs daemon to perform mounts in the /smb tree using their credentials, like this:<br><br>ls /smb/server/share/dir1/.../dirN<br><br>$ cat /etc/auto.master<br>&lt;snip&gt;<br>/smb&nbsp;&nbsp;&nbsp;&nbsp; /etc/auto.smb.top<br>&lt;snip&gt;<br><br>$ cat /etc/auto.smb.top <br>* -fstype=autofs,-Dhost=&amp; file:/etc/auto.smb.sub<br><br>$ cat /etc/auto.smb.sub <br>* -fstype=cifs,credentials=${HOME}/.secret.txt,uid=${UID},gid=${EUID} ://${host}/&amp;<br><br><br><br>Yes, it's got problems and implications:<br>&nbsp;- root can read that .secret.txt file and get direct access to the user's CIFS credentials.<br>&nbsp;- a second user on the system trying to access an already-mounted share will be blocked by the previous auto-mount.<br><br>... but it's pretty sweet for 80+% of use-cases.<br><br>--<br>David L. Willson<br>Trainer, Engineer, Enthusiast<br>RHCE Network+ A+ Linux+ LPIC-1 Ubuntu<br>Mobile 720-333-LANS(5267)<br><br>This is a good time for a r3VOLution.<span name="x"></span><br></span><br></div></body></html>