Bug 11009 - smb_mkstemp failed
Summary: smb_mkstemp failed
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.1.14
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-15 13:33 UTC by Erik Thiele
Modified: 2020-05-04 06:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Thiele 2014-12-15 13:33:14 UTC
I get a lot of these messages in logfile:

[2014/12/15 13:48:54.172689,  0, pid=2950] ../source3/libads/kerberos.c:926(create_local_private_krb5_conf_for_domain)
  create_local_private_krb5_conf_for_domain: smb_mkstemp failed, for file /var/cache/samba/smb_tmp_krb5.wgU6ix. Errno Permission denied

checking the owner of pid 2950:
fileserv:/var/cache/samba# ps axwu|grep 2950
root 2950 0.1 1.1 37056 11476 ? S 08:33 0:27 /usr/sbin/smbd -D

checking permissions of the directory:
ls -ld /var/cache/samba
drwxr-xr-x 4 root root 4096 Dez 15 14:23 /var/cache/samba

checking if the file already exists:
ls /var/cache/samba/smb_tmp_krb5.wgU6ix
/var/cache/samba/smb_tmp_krb5.wgU6ix: No such file or directory

checking that there are no strange ACL entries:
getfacl -s /var/cache/samba
--> no output.

when i do chmod 777 /var/cache/samba, the problems will go away, but testparm will comply that permissions need to be 755. when setting the permissions back to 755 the problems will be there again.

i have no selinux and no apparmor running.

i do not understand the problem. how can i help to debug here?
Comment 1 Björn Jacke 2020-05-04 06:20:25 UTC
this is not a generic issue, if you still see this kind of problem in your setup, you might consider to consult support from https://www.samba.org/samba/support/globalsupport.html