mb 文件共享设置,红色字体解决samba无法访问软连接的问题
1)scp /home/daisy/full.tar.gz root@172.19.2.75:/home/root
2)创建dbstar账号
useradd dbstar
passwd dbstar
3)添加smb虚拟用户
smbpasswd
-a dbstar //这里smb的共享密码可以设置成与dbstar用户CRT登陆密码不一样
4)修改:/etc/fstab
//10.251.3.32/mnt/sdb1 /mnt/sdb1 cifs defaults,username=dbstar,password=dbstar 0 0
#0 0代表不做开机自检
然后mount -a 使生效
5)软连接
ln -s /mnt/sdb2/contentEncrypt pushfile //如果名称没要求,不需要特意输入名称;这样软连接名称是一样的;
vim /etc/samba/smb.conf
//在全局变量里添加加粗的字
[global]
follow symlinks = yes
wide links = yes
unix extensions = no
举例:
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
follow symlinks = yes
wide links = yes
unix extensions = no
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[dbstar]
comment = sdb1
path = /
browseable = yes
writable = yes
#guest ok = yes
valid users = dbstar