免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4111 | 回复: 6
打印 上一主题 下一主题

samba 不能删除文件求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-22 17:36 |只看该作者 |倒序浏览
10可用积分
在windows端访问samba的时候不能删除文件(新建.修改文件都是可以的).有人碰到过这种问题嘛?


[root@host1 samba]# uname -a
Linux host1 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux


smb.conf

#======================= Global Settings =====================================
[global]

#        encrypt passwords = Yes
#        log file = /opt/samba/var/log.%m
#        max log size = 50
#        oplocks = no
#        level2 oplocks = no
#        kernel oplocks = No
#        wins server = 199.5.1.199
#        invalid users = @wheel, adm, mail, daemon, uucp, nuucp, nobody, noaccess, nobody4
#        hosts allow = 10.193. 10.192. 10.196.0.
        create mask = 0750
        directory mask = 4750


# workgroup = NT-Domain-Name or Workgroup-Name
 workgroup = mygroup

# server string is the equivalent of the NT Description field
 server string = Samba Server

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
 printcap name = /etc/printcap
 load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing = cups

# This option tells cups that the data has already been rasterized
 cups options = raw


# this tells Samba to use a separate log file for each machine
# that connects
 log file = /var/log/samba/%m.log
# all log information in one file
#   log file = /var/log/samba/smbd.log

# Put a capping on the size of the log files (in Kb).
 max log size = 50


# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24

# Configure remote browse list synchronisation here
#  request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
;   remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
;   remote announce = 192.168.1.255 192.168.2.44


# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
 dns proxy = no

#============================ Share Definitions ==============================
 idmap uid = 16777216-33554431
 idmap gid = 16777216-33554431
 template shell = /bin/false
 username map = /etc/samba/smbusers
 password server = None
 winbind use default domain = no
[homes]
 comment = Home Directories
 browseable = yes
 writeable = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
 comment = All Printers
 path = /var/spool/samba
 browseable = no
# Set public = yes to allow user 'guest account' to print
 printable = yes



[b09947]
 path = /u1/b09947
 writeable = yes
 valid users = b09947


[ 本帖最后由 xiangxianni 于 2007-10-22 17:39 编辑 ]

samba.jpg (10.85 KB, 下载次数: 40)

samba.jpg

论坛徽章:
0
2 [报告]
发表于 2007-10-22 17:42 |只看该作者
check whether the file is currently in use

论坛徽章:
0
3 [报告]
发表于 2007-10-22 18:12 |只看该作者
检查文件是否正在使用,
检查该文件用户权限设置,

论坛徽章:
0
4 [报告]
发表于 2007-10-23 10:28 |只看该作者
回2楼三楼

文件权限为-rw-r--r--
通过fuser查看文件也没有被使用

另外:目录是可以被删除的

[ 本帖最后由 xiangxianni 于 2007-10-23 10:34 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2007-10-23 11:05 |只看该作者
/分区满了,会导致这个问题嘛?

samba的目录不在/分区下面

[ 本帖最后由 xiangxianni 于 2007-10-23 12:23 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2007-10-23 13:20 |只看该作者
应该不会的。。还是在权限上找找原因吧

论坛徽章:
0
7 [报告]
发表于 2007-10-23 13:45 |只看该作者
问题已经解决.

/分区满了.哈哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP