1.创建挂载点
#mkdir /windows
#mkdir /windows/d
#mkdir /windows/e
2.修改目录权限
#chown user1 /windows/d -R
#chown user1 /windows/e -R
3.安装NTFS-3G
编辑fstab
#
/dev/sda2 /windows/d ntfs-3g umask=000 0 0
/dev/sda3 /windows/e ntfs-3g umask=000 0 0
4.创建一个samba账户
#smbpasswd -U user1
SMB用户必须是系统用户,也就是说 user1 必须已经是系统用户
5.编辑smb.conf
[NTFS资料E盘]//之前我这里写的是[/windows/e],在WINDOWS下死活访问不了,这里应该要遵循WINDOWS文件夹命名规则
comment = Windows E disk
path = /windows/e
public = yes
browseable = yes
writeable = yes
guest ok = yes
create mask = 0700
directory mask = 0700
writelist = @user1
readlist = @user1
6.重启samba
#/etc/init.d/samba restart
阅读(742) | 评论(0) | 转发(0) |