Amelia Nilsson wrote:
It is possible to mount smbfs from fstab. From your line i see that you
have a ":" to much and some of the "/" changed to "\". The line should
look like this:

\\ipaddres/dirname /dirname smbfs username=testid,password=testpw 0 0

And ofcourse, if you want it to automount at boot you change the last 0
to 1.


Here are two correct mount commands. Note that cifs is the successor to
smbfs:
mount.cifs  \\\\coco\\profile /mnt/coco/ --verbose -o
user=administrator,password=**********,ip=10.0.0.253,domain=class.corridors
mount -t cifs  \\\\coco\\software /mnt/coco.software --verbose -o
user=administrator,password=**********,ip=10.0.0.253,domain=class.corridors


This works too:
mount.cifs //coco/profile /mnt/coco/ -o
user=administrator,password=**********,ip=10.0.0.253,domain=class.corridors

The arguments on the mount commands here should appear in fstab if
that's what you are using.

The credentials can be picked up from a file, so as to maintain
confidentiality.

Mostly, I prefer to not use backslashes so as to avoid hassles with
programs that think they should be escaped and so reduce two to one,
potentially several times.


Note, on SLES10 (and probably 9) you should be specifying cifs, not
smbfs; smbfs hasn't been maintained for some time.



Best regards,

-
Amelia Nilsson

www.linuxchick.se
[email protected]
+46 762 77 42 77


If you're not the intended recipient of this e-amail please delete this
e-mail and inform the sender. During previously stated circumstances
you're not allowed to copy or forward this e-mail.


On Wed, 2009-03-18 at 14:18 -0400, Mark D Vandale wrote:
Can smbfs be mounted from /etc/fstab ?  I can issue the cmd "mount -f
smbfs //ipaddress/dirname  /dirname username=testid,password=testpw"  and
get the smbfs mounted but I can't get this mounted by adding a line in
the /etc/fstab .  The format in the /etc/fstab is more like -->
//ipadress:/dirname   /dirname  smbfs ro,username=testid,password=testpw  0
0   Is this possible from /etc/fstab or do I need to do this from somewhere
else ?  This is SUSE SLES10.

Thanks,

Mark


This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


--

Cheers
John

-- spambait
[email protected]  [email protected]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to