写进 smb.conf,是可以共享的。
home 分区的文件,直接在 dolphin 右键共享是可以的,但挂载的 windows 分区就不行,而且设置共享后重启 dolphin,设置就自动取消了。
跟挂载的权限选项有关吗?这是 fstab:
代码: 全选
UUID=B199DEC9DF0721FA /mnt/WinD ntfs-3g user,umask=000 0 0
代码: 全选
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client min protocol = SMB2
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070