mount smbfs

Uros uros at sir-mag.com
Tue Oct 12 04:10:41 PDT 2004


Hello!

I want to know how to add options in /etc/fstab for smbfs mount. I would
like to add fmask dmask or -f -d

And some other thing. I have command

awk -- '/^# \/.*[[:space:]]+smbfs[[:space:]]+/ { print $2,$3 }' /etc/fstab

I want that output is set to some array. If I use

vols=`awk -- '/^# \/.*[[:space:]]+smbfs[[:space:]]+/ { print $2,$3 }'
/etc/fstab`

and then

for vol in ${vols}; do
    echo "$vol"
done

output is separeted by space, but i want $2 and $3 to be in one row so I
can execute mount command


-- 
Best regards,
 Uros



More information about the freebsd-questions mailing list