hi mike
- this is untested...but...
[leopard]# cat /etc/auto.master
/.autofs /etc/auto.misc --timeout 60
[leopard]# cat /etc/auto.misc
...
user -fstype=smbfs,login=user,passwd=user_pwd myserver:/myfiles
dont forget to: ln -s /.autofs/user /home/user
make sure you have:
autofs, smbfs listed in `cat /proc/filesystems`
mount_smbfs.o listed ins /usr/lib/autofs/* lots of stuff
if you want to use smbmount.... hummm...
#
# with smbmount from the smbfs-2.0.3 package:
# if this does not work, autofs will fail too
#
linux# smbmount //myserver/myfiles user_pwd -c 'mount /home/user' -U user
linux# ls -l /home/user
have fun
alvin
http://www.linux-consulting.com/Amd_AutoFS/autofs-HOWTO.html
> I was wondering if someone could show me an autofs config file to
> automount a samba file system. I am trying to setup a student lab
> environment with linux. I want to get the users home directory via
> smbmount but have not been able to figure out how to automount a smb
> file system. The users have personal space on a server
> e.g. \\myserver\myfiles
> I would like to be able to mount this directory to /home/<USERNAME> of
> the user currently using the system. I have looked through the man
> pages and have found nothing pertaining to smbmount. Any help would be
> appreciated.
>
> Mike Mercier
> System Support
> Student Computer Labs
> University of Lethbridge
>