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 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
xinetd launches the application as it should and it runs ok
just no logging
i'm missing something obvious
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.
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.
On Sun, Feb 01, 2026 at 17:15:03 +0000, fxkl47BF@protonmail.com 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.
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.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 19:03:54 |
| Calls: | 117 |
| Calls today: | 117 |
| Files: | 367 |
| D/L today: |
540 files (253M bytes) |
| Messages: | 70,845 |
| Posted today: | 26 |