可以使用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