i did this the other day on a CentOS 5.4 box:
as root:
edit /etc/auto.master
at the bottom of that file under the +auto.master line i put the following:
Code:
/mnt/MYBOOK /etc/auto.MYBOOK --timeout=600 --ghost
then i made the file /etc/auto.MYBOOK and put the following in there:
Code:
winbox -fstype=cifs,rw,noperm,username=foo,password=foo ://192.168.1.207/DME
note the noperm and the fact that you have the IP/path_to_foo
it did not work for me with just the IP/ i had to have some directory under it or it would fail.
restart autofs (fyi ,this must be installed first sorry)
then make sure you can view the mountpoint:
Code:
[user@foo ~]$ ls -la /mnt/MYBOOK/winbox/
total 384
drwxrwxrwx 1 root root 0 Aug 19 18:30 .
drwxr-xr-x 3 root root 0 Aug 20 15:54 ..
drwxrwxrwx 1 root root 0 Aug 19 18:27 Blank DME orders
drwxrwxrwx 1 root root 0 Aug 19 18:26 Dr DME orders
-rwxrwSrwx 1 root root 348248 Aug 18 19:01 New Patient Forms.pdf
drwxrwxrwx 1 root root 0 Aug 19 18:30 Patient Orders
then make a symlink:
Code:
[user@foo ~]$ ln -s /mnt/MYBOOK/winbox/ /usr/rx30/Desktop/DME
now when ever the user tries to access the symlink the system will automount it seamlessly and things will behave nicely if there is a network hiccup as it will quietly disconnect the mount after 5min. you can reduce this by adjusting the auto.master file time.