-
Nov09
samba的自动挂载
Posted in 操作系统, 870 views
-
方法一:FSTAB修改/etc/fstab文件,添加:
//server/share /mount/point smbfs username=[username],password=[password] 0 0 方法二:auto.misc修改/etc/auto.misc添加:请在文本框输入文字# $Id: 3420.php,v 1.3 2006/10/24 07:50:27 hli Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
samba -fstype=smbfs,username=[username],password=[password] ://server/share
# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
编辑完成以后,需要重新启动autofs服务才可以生效
运行命令service autofs restart 或 /etc/init.d/autofs restart.Related posts:

Leave a comment | Trackback 这篇文章还没有评论.