Ubuntu Samba 软连接无法访问

step 1
install samba
sudo apt-get install samba
sudo apt-get install smbfs

step 2
backup the samba config file
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo vim /etc/samba/smb.conf

search "; security = user" line modify as follow:
security = user
username map = /etc/samba/smbusers

step 3
add follow end of the smb.conf file :
[UbuntuShare]
   comment = local server samba share
   path = /home/newsfan
   browseable = yes
   read only = no
   available = yes
   valid users = newsfan

step 4
modify [globle] as follow :
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936

step 5
sudo useradd newsfan
sudo smbpasswd -a newsfan // create newsfan samba passwd

sudo vim /etc/samba/smbusers // add smbuser
newsfan = "network newsfan"


step 6
sudo testparm
sudo /etc/init.d/smbd restart

windows xp or windows 7 disconnect samba server use follow cmd

net use * /del


smbmount //IP_ADDR/samba /mnt -o username=[name],password=[xxxx]

mount -t cifs cifs //IP_ADDR/samba /mnt -o username=[name],password=[xxxx]

mount -t smbfs -o username=[name],password=[xxxx] //IP_ADDR/samba /mnt

smbclient //IP_ADDR/samba -U username

解决samba 无法访问软连接的问题

在配置文件的“[global]”节的最后,加上下面三条设置:

follow symlinks = yes
wide links = yes
unix extensions = no

然后保存退出,最后重启下samba即可


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值