<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Credit where credit's due. I found it here:<br>http://wiki.centos.org/TipsAndTricks/WindowsShares<br><span><br><span name="x"></span>--<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><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><style>p { margin: 0; }</style><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></span><br></span><br></div><br>_______________________________________________<br>clue mailing list: clue@cluedenver.org<br>For information, account preferences, or to unsubscribe see:<br>http://cluedenver.org/mailman/listinfo/clue</blockquote><br></div></body></html>