linux 文件夹映射失败,将linux文件夹映射为网络盘,并使用tfs,无效!

可以使用samba在windows下访问linux文件

linux安装并启动服务samba。

在windows下访问linux下的共享文件夹,会使用当前的windows登录的用户名,登录samba服务。

windows登录的用户名必须也是samba,以及linux的用户。

useradd smb windows用户名

samba用户名 权限 在/etc/smb.conf中指定

有三个用户名及两个权限

使用windows当前的用户名--》samba 中用户名  ---》linux用户名

window,samba,linux都有同一个用户,并且在samba和linux中指定了相同的目录以及文件权限。

或者使用下面的security = share ,而非security = user

linux用户名 权限 在linux中指定

smbclient -L //192.168.51.199 -U 用户名

注意

由于tfs会修改文件目录访问权限,而只有root和owner才能修改目录权限属性。因此你必须是要checkin,checkout的目录的owner

使用security=share

etc/smb.conf

[global]

security = share

[homes]

comment = Home Directories

browseable = yes

path = /home/

# By default, the home directories are exported read-only. Change the

# next parameter to 'no' if you want to be able to write to them.

read only = no

# File creation mask is set to 0700 for security reasons. If you want to

# create files with group=rw permissions, set next parameter to 0775.

create mask = 0775

# Directory creation mask is set to 0700 for security reasons. If you want to

# create dirs. with group=rw permissions, set next parameter to 0775.

directory mask = 0775

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值