[KLUG Members] smbmount questions

Richard Zimmerman members@kalamazoolinux.org
Wed, 21 Aug 2002 11:50:08 -0500


> If I run two identical smbmount commands (essentially re-mounting the same
> network share to the same mountpoint) what happens?  Do I later need to
run
> smbumount twice?

  when you run a ps-ax you will see multiple smbmounts for that share. It
does not affect it operationally. Also, you will have to issue a mount for
EACH instance that it is mounted. I discovered this with an errant script
that would mount shares all day long but a typo prevented it's unmounting.

> If I run smbmount and set the mountpoint to that directory, what happens
to
> those files?

   You have really good access to them! :-)

> Being as running smbmount seems to require being logged in as root, if I
run
> smbmount in a script, is it possible to do su or something similar?

    My scripts all run as a cron job so they assume root automatically as I
don't assign them to anything else.

   Richard


Richard Zimmerman                                     richard@knbpower.com
System Administrator
K&B Transport, Inc.
Elkhart, Indiana                          Advanced SKYWARN weather spotter

Look Listen and Live!
Support Operation Lifesaver
www.oli.org