On Tue, Mar 13, 2001 at 01:30:59PM -0600, Andy Zbikowski wrote:
> Mike looks like:
>
> /etc/auto.master:
> # $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
> # Sample auto.master file
> # Format of this file:
> # mountpoint map options
> # For details of the format look at autofs(8).
> #/var/autofs/misc /etc/auto.misc
> /mnt/domain /etc/auto.domain
>
> /etc/auto.domain
> username
> -fstype=smbfs,username=username,password=pass,netbiosname=wsname,uid=1000,gid=1000,fmask=600,dmask=700,workgroup=domain,rw
> ://fileserver/username
>
> So to get to my Windows Home directory, cd /mnt/domain/username. Whee. Only
> problem is that it throws my password into syslog. That's tweakable but I'm
> lazy...
Um. Remove the 'password=pass' option. Place your password in a 0700
permission file in /etc. Call it something like /etc/smbmnt-password.
In /etc/init.d/autofs add this line:
if [ -f /etc/smbmnt-passwd ] ; then
SMBPASSWD=`cat /etc/smbmnt-passwd`
export SMBPASSWD
fi
There are other env variables you can use. Look at the manpages for
smbclient(8) for more info.
--
Chad Walstrom <chewie at wookimus.net> | a.k.a. ^chewie
http://www.wookimus.net/ | s.k.a. gunnarr
Key fingerprint = B4AB D627 9CBD 687E 7A31 1950 0CC7 0B18 206C 5AFD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20010322/48769227/attachment.pgp