On Sun, 1 Feb 2026, Greg Wooledge wrote:

> On Sun, Feb 01, 2026 at 17:15:03 +0000, [email protected] wrote:
>> i my xinetd service config, my_service, i have
>>
>> user = bbob
>> log_type = FILE /tmp/my_service.log
>>
>> xinetd creates a new empty file owned by root
>> so application being run as bbob can't write to log file
>
> I looked at the xinetd.conf man page online, and it doesn't give
> any options for owner/group/permissions of the log file.  It just says
> it'll be created if it doesn't exist.
>
> I believe the understanding is that you'll create the file yourself,
> and give it the right owner/group/permissions, since that's a one-time
> operation.  Therefore, it doesn't need to be configurable within
> the xinetd.conf, because nobody ever uses that feature.
>
> In your case, I would recommend moving the log file out of /tmp and
> into a permanent location, and creating it in advance with the proper
> owner, group and permissions.  That's the sensible way.

i've been called a lot of things but never sensible
i think i'll give this a try

>
> If you insist on being not sensible, then perhaps you could configure
> your system to create this file in /tmp every time you boot, either
> using systemd-tmpfiles(8) or an /etc/rc.local script or something
> along those lines.  This would not be my choice.  A log file shouldn't
> be in /tmp.
>

Reply via email to