[Samba] Can't create file.

jeff sacksteder jsacksteder at gmail.com
Tue Dec 22 17:00:27 MST 2009


I can authenticate at the smb level, but there's something wrong at
the posix level when I try to edit or create files. I am always denied
access regardless of how loose the file/directory permissions are.
This is what I am seeing in the logs -

[2009/12/20 00:57:35, 4] smbd/uid.c:change_to_user(183)
  change_to_user: Skipping user change - already user
[2009/12/20 00:57:35, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file "New Text Document.txt"
[2009/12/20 00:57:35, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = New Text Document.txt, dirpath = , start
= New Text Document.txt
[2009/12/20 00:57:35, 5] smbd/filename.c:unix_convert(440)
  New file New Text Document.txt
[2009/12/20 00:57:35, 3] smbd/dosmode.c:unix_mode(142)
  unix_mode(New Text Document.txt) returning 0744
[2009/12/20 00:57:35, 5] smbd/files.c:file_new(123)
  allocated file structure 9322, fnum = 13418 (1 used)
[2009/12/20 00:57:35, 4] smbd/open.c:open_file_ntcreate(1605)
  calling open_file with flags=0x2 flags2=0x80 mode=0744, access_mask
= 0x2019f, open_access_mask = 0x2019f
[2009/12/20 00:57:35, 3] smbd/open.c:open_file(237)
  Permission denied opening New Text Document.txt
[2009/12/20 00:57:35, 5] smbd/files.c:file_free(454)
  freed files structure 13418 (0 used)
[2009/12/20 00:57:35, 3] smbd/error.c:error_packet_set(106)
  error packet at smbd/nttrans.c(805) cmd=162 (SMBntcreateX)
NT_STATUS_ACCESS_DENIED

other than the mode of the directory, what would cause this to return
access_denied?


More information about the samba mailing list