[Samba] chown failure on a samba share

Shirish Pargaonkar shirishpargaonkar at gmail.com
Wed Mar 11 02:32:22 GMT 2009


Is this working as designed or a samba bug?

I am trying to chown ownership of a file in a samba share and it
results in an error.

cifstest6:~ # smbclient //cifstest8/smb8 -U root
Enter root's password:
Domain=[CIFSTEST8] OS=[Unix] Server=[Samba 3.4.0-GIT-e6a5f11-devel]
smb: \> chown 65534 65534 file2
NT_STATUS_ACCESS_DENIED chown file \file2 uid=65534, gid=65534

The share is thus exported

[smb88]
        path =  /tmp/cifstest88
        browseable = Yes
        read only = No
        guest ok = Yes
        writable = yes
        printable = yes

ls -l /tmp/cifstest8/file2
-rwxrwxrwx 1 root root 0 Mar 10 10:47 /tmp/cifstest8/file2


[2009/03/10 11:40:24,  3] smbd/trans2.c:6831(call_trans2setfilepathinfo)
  call_trans2setfilepathinfo(6) file2 (fnum -1) info_level=512 totdata=100
[2009/03/10 11:40:24, 10] smbd/trans2.c:6069(smb_set_file_unix_basic)
  smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC: name = file2 size
= 0, uid = 65534, gid = 65533, raw perms = 037777777777
[2009/03/10 11:40:24, 10] smbd/trans2.c:6129(smb_set_file_unix_basic)
  smb_set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC changing owner
65534 for path file2
[2009/03/10 11:40:24,  3] smbd/error.c:60(error_packet_set)
  error packet at smbd/trans2.c(7087) cmd=50 (SMBtrans2) NT_STATUS_ACCESS_DENIED


More information about the samba mailing list