mount smbfs

Uros uros at
Tue Oct 12 04:10:41 PDT 2004


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 }'

and then

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

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

Best regards,

More information about the freebsd-questions mailing list