- 论坛徽章:
- 0
|
在创建好用户,启动服务在windwos 7 用test01 登录 后发现,能对复制文件,但是不能创建。弄了一个下午了,还是无法搞定,请大虾们帮帮我啊!
提示下面信息:
用户信息:
[root@ftp test01]# id test01
uid=525(test01) gid=528(test01) groups=528(test01),527(test0104) context=root:system_r:unconfined_t:SystemLow-SystemHigh
文件权限:
[root@ftp test01]# cd /opt/sambatest/
[root@ftp sambatest]# ll
总计 56
drwxrwx--- 3 test01 sambatest 4096 11-01 09:49 test01
drwxrws--- 2 sambatest test0104 4096 11-01 07:23 test0104rw
drwxrws--- 2 test02 sambatest 4096 11-01 07:23 test02
drwxrws--- 2 test03 sambatest 4096 11-01 07:23 test03
drwxrws--- 2 test04 sambatest 4096 11-01 07:23 test04
drwxrwsrwt 2 sambatest sambatest 4096 11-01 07:23 testallrw
drwxr-xr-x 2 sambatest sambatest 4096 11-01 07:23 testshare
sam.conf 配置文件:
[global]
#主机信息
workgroup=WORKGRUOP
netbios name=sambaserver
Server string=Test Samba Server
#语言设置
unix charset=utf8
display charset=utf8
dos charset=utf8
#日志文件设置
log file=/var/log/samba/%m.log
max log size=50
#密码设置
security=user
encrypt passwords=yes
smb passwd file=/etc/samba/smbpasswd
#新增加每个用默认的目录和群组用户
[sambatest] //这个是默认samba的跟目录
comment = sambatestadmin
path = /opt/sambatest/
create mask = 0664
directory mask = 0775
writeable = yes
# valid users = sambatest
browseable = yes
#用户配置目录。无法不知道哪里出问题了
[test01]
comment = test01
path = /opt/sambatest/test01
create mask = 0664
directory = 0775
writeable = yes
valid users = test01,@sambatest,@test01
browseable = yes
# user = test01 root sambatest
public = yes
read noly =no
share mode = yes |
|