[Pkg-samba-maint] Bug#522388: mount.cifs and samba copy/dirs permissions error

Pol Hallen polhallen at fuckaround.org
Fri Apr 3 10:45:47 UTC 2009


Package: samba
Version: 2:3.2.5-4
Severity: important


On the server there are:
debian stable with kernel 2.6.28.8 and samba 3.2.5-4

On several clients:
debian stable/testing (tested by various kernels), winXP (sp1/2), ubuntu 8.x

client side:
mount.cifs //192.168.1.130/upload /home/user0/upload -o "username=user0,password=user0"
done

mkdir /home/user0/upload/tmpdir0
touch /home/user0/upload/tmpdir0/tmpfile0
touch /home/user0/upload/tmpfile1

ls -la /home/user0/upload

drwxr-xr-x 2 user0 user0       0 2009-04-03 12:29 tmpdir0
-rwxr--r-- 1 user0 user0       2 2009-04-03 12:32 tmpfile0

-rw-r--r-- 1 user0 user0       1 2009-04-03 12:35 tmpfile1

everything is ok :-)

cp -rv /home/user0/10filesdir /home/user0/upload/
cp: cannot create regular file [...] access denied. [...] for all files

Thus: ONLY if I copy a dir with several files inside it born a copy error!
Because seems that the permission (server side) are correctly, but I don't understand the problem :-/

Using konqueror (smb://192.168.1.130/upload) this problem there isn't: everything is ok. Same with winXP and osx

I tried several options on the server and clients: add/remove unix permissions = yes, on mount: add nodfs, etc.

I wish resolve the problem because I've 2 production servers.

Very thanks :-)

Pol

smb.conf

domain master = yes
preferred master = yes
os level = 65
workgroup = LANTEST
netbios name = SERVERTEST0
Server String = SERVERTEST0
wins support = yes
name resolve order = wins host dns bcast
hosts allow = 192.168.1.0/24
load printers = no
guest account = samba
loglevel=2
log file = /var/log/samba/%m.log
security=USER
encrypt passwords = yes
null passwords = no

[upload]
path=/share/upload
writable = yes
browseable = yes
valid users = user0 user1 user2 user3 user3 user5
admin users = useradmin
dos charset = ISO8859-1
unix charset = ISO8859-1
display charset = ISO8859-1

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.6-luana (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba depends on:
ii  adduser               3.110              add and remove users and groups
ii  debconf [debconf-2.0] 1.5.26             Debian configuration management sy
ii  libacl1               2.2.47-2           Access control list shared library
ii  libattr1              1:2.4.43-2         Extended attribute shared library
ii  libc6                 2.7-18             GNU C Library: Shared libraries
ii  libcomerr2            1.41.3-1           common error description library
ii  libcups2              1.3.8-1lenny4.1    Common UNIX Printing System(tm) - 
ii  libgnutls26           2.6.4-2            the GNU TLS library - runtime libr
ii  libkrb53              1.6.dfsg.4~beta1-6 MIT Kerberos runtime libraries
ii  libldap-2.4-2         2.4.11-1           OpenLDAP libraries
ii  libpam-modules        1.0.1-5            Pluggable Authentication Modules f
ii  libpam-runtime        1.0.1-9            Runtime support for the PAM librar
ii  libpam0g              1.0.1-9            Pluggable Authentication Modules l
ii  libpopt0              1.14-4             lib for parsing cmdline parameters
ii  libtalloc1            1.2.1-1            hierarchical pool based memory all
ii  libwbclient0          2:3.3.2-1          Samba winbind client library
ii  logrotate             3.7.7-3            Log rotation utility
ii  lsb-base              3.2-22             Linux Standard Base 3.2 init scrip
ii  procps                1:3.2.7-11         /proc file system utilities
ii  samba-common          2:3.2.5-4          Samba common files used by both th
ii  update-inetd          4.31               inetd configuration file updater
ii  zlib1g                1:1.2.3.3.dfsg-12  compression library - runtime

samba recommends no packages.

Versions of packages samba suggests:
pn  ldb-tools                   <none>       (no description available)
ii  openbsd-inetd [inet-superse 0.20080125-2 The OpenBSD Internet Superserver
pn  smbldap-tools               <none>       (no description available)

-- debconf information:
  samba/run_mode: daemons
  samba/generate_smbpasswd: true





More information about the Pkg-samba-maint mailing list