[linux-cifs-client] Can not set permissions higher than 744 (e.g. 755)

vasek at spsmb.cz vasek at spsmb.cz
Tue Feb 5 20:00:42 GMT 2008


Hello,

I 'm exporting my home directory with samba cifs. I can set permissions 
for my exported files to 644, 600, 744 ... but I can't set 666 etc. This 
means that I can't set write access for group and others. Here are my 
configurations:

SERVER
-------------------------------------------
vanilla kernel 2.6.19.7
samba Version 3.0.24

filename:       /lib/modules/2.6.19.7/kernel/fs/cifs/cifs.ko
author:         Steve French <sfrench at us.ibm.com>
license:        GPL
description:    VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows
version:        1.46
vermagic:       2.6.19.7 SMP mod_unload PENTIUM4 REGPARM
depends:
srcversion:     6A8992E73DF7EF8D8C27855
parm:           cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256 (int)
parm:           cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int)
parm:           cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int)
parm:           CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int)


smb.conf

[global]
        workgroup = WORKGROUP
        netbios name = XXX
        server string = Unix a Windows souborovy server
        security = user
        encrypt passwords = yes
        obey pam restrictions = yes
        pam password change = yes
        update encrypted = No
        allow trusted domains = Yes
        passdb backend = mysql:foo
        foo:mysql user = nss-root
        foo:mysql password = XXX
        foo:mysql database = auth
        foo:table = smbusers
        foo:domain column = 'WORKGROUP':
        os level = 65
        acl compatibility = Auto
        unix extensions = yes

[homes]
        comment = Domaci adresare
        valid users = %S
        browseable = no
        read only = No
        guest ok = no
        printable = no


CLIENT
-----------------------------------------------

kernel ubuntu 2.6.22-14-generic

filename:       /lib/modules/2.6.22-14-generic/kernel/fs/cifs/cifs.ko
version:        1.49
description:    VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows
license:        GPL
author:         Steve French <sfrench at us.ibm.com>
srcversion:     30616BA7D30E1F22CF9B850
depends:
vermagic:       2.6.22-14-generic SMP mod_unload 586
parm:           CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int)
parm:           cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int)
parm:           cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int)
parm:           cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256 (int)


mount
..... type cifs (rw,mand)


client: chmod 777 dada

SERVER log.smbd:
...
[2008/02/05 20:25:50, 3] smbd/process.c:switch_message(914)
  switch message SMBtrans2 (pid 29105) conn 0x84163a0
[2008/02/05 20:25:50, 4] smbd/uid.c:change_to_user(178)
  change_to_user: Skipping user change - already user
[2008/02/05 20:25:50, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "dada"
[2008/02/05 20:25:50, 5] smbd/filename.c:unix_convert(180)
  conversion finished dada -> dada
[2008/02/05 20:25:50, 3] smbd/trans2.c:call_trans2setfilepathinfo(3854)
  call_trans2setfilepathinfo(6) dada (fnum -1) info_level=512 totdata=100
[2008/02/05 20:25:50, 8] smbd/dosmode.c:dos_mode(377)
  dos_mode: dada
[2008/02/05 20:25:50, 8] smbd/dosmode.c:dos_mode_from_sbuf(193)
  dos_mode_from_sbuf returning a
[2008/02/05 20:25:50, 8] smbd/dosmode.c:dos_mode(415)
  dos_mode returning a
[2008/02/05 20:25:50, 10] smbd/trans2.c:call_trans2setfilepathinfo(4224)
  call_trans2setfilepathinfo: SMB_SET_FILE_UNIX_BASIC: name = dada size = 0, uid = 4294967295, gid = 4294967295, raw perms = 0100777
[2008/02/05 20:25:50, 10] smbd/trans2.c:call_trans2setfilepathinfo(4307)
  call_trans2setfilepathinfo: SMB_SET_FILE_UNIX_BASIC setting mode *0744* for file dada
...



Where is the problem?



More information about the linux-cifs-client mailing list