[Samba] smbmount
Peter Atkin
peter at computer-facilities.com
Tue Oct 28 14:00:50 GMT 2003
I try to understand how works SMBMOUNT, by reading the man page. Could you
please send me an exemple, to help me to understand ? tahnks and bye
Hi Eric please find below a sample, this is directly from my rc.local file which is run at startup.
/etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# Samba 2.2.8a
# mount -t smbfs -o username=service,password=xxxxxxxx //core/users /mnt/nas/users
# mount -t smbfs -o username=service,password=xxxxxxxx //core/backup /mnt/nas/backup
# mount -t smbfs -o username=service,password=xxxxxxxx //core/logon /mnt/nas/logon
# mount -t smbfs -o username=service,password=xxxxxxxx //core/source /mnt/nas/source
# Samba 3
mount -t smbfs -o credentials=/etc/samba/service.conf,port=139,ttl=10000 //core/users /mnt/nas/users
mount -t smbfs -o credentials=/etc/samba/service.conf,port=139,ttl=10000 //core/backup /mnt/nas/backup
mount -t smbfs -o credentials=/etc/samba/service.conf,port=139,ttl=10000 //core/logon /mnt/nas/logon
mount -t smbfs -o credentials=/etc/samba/service.conf,port=139,ttl=10000 //core/source /mnt/nas/source
mount -t smbfs -o credentials=/etc/samba/service.conf,port=139,ttl=10000 //core/quickbooks /mnt/nas/quickbooks
/etc/samba/service.conf file contains
username = service
password = xxxxxxx
hope this help
Oooo
(O O) ( ) Oooo
--oooO--(_)--Oooo------------------------------------\ (-( )--
COMPUTER FACILITIES \_) ) /
---------------------------------------------------------(_/----
Postal Address Delivery Address Contacts
----------------------------------------------------------------
P.O.Box 21558 61 Bukoto Street support at computer-facilities.com
Kampala Kamwokya
Uganda Kampala Tel 256-(0)41-533784
East Africa Uganda Fax 256-(0)41-540380
East Africa e-Fax 1-206-350-3375 (USA)
----------------------------------------------------------------
More information about the samba
mailing list