[Samba] 'Permission denied' Journal entries for '/var/log/samba/log.rpcd_classic'

Rowland Penny rpenny at samba.org
Mon Jan 8 11:37:29 UTC 2024


On Mon, 8 Jan 2024 12:18:10 +0100
Friedrich Romstedt via samba <samba at lists.samba.org> wrote:

> Hi,
> 
> This is a question about getting a Samba file server to work. I am a
> newbie about Samba, however not an unexperienced Linux user. I am
> using Arch Linux with Samba 4.19.3.
> 
> The reason for this question is output in the systemd Journal of the
> server machine, consisting of two lines like the following (separated
> here by a blank line):
> 
> 
> [2024/01/08 10:34:11.358889,  0]
> ../../lib/util/debug.c:1264(reopen_one_log)
> 
> reopen_one_log: Unable to open new log file
> '/var/log/samba/log.rpcd_classic': Permission denied

It seems fairly obvious that whatever is trying to create the logfile
is not being allowed to by the permissions on the /var/lib/samba
directory. I use Debian, where the permissions on that directory are:

drwxr-x--- 3 root adm 4096 Jan  7 00:00 /var/log/samba/

So only 'root' is allowed to write to the directory.

If it is 'root' trying to write the log file, then I would take a look
at apparmor, that could be denying access.
 
Rowland



More information about the samba mailing list