Dear Daemon folks!
I'm feeling still pretty new to FreeBSD, while I'm on it since half a year. And I am still missing a very essential feature extending the tmpfs's abilities.
By the nature of any tmpfs, e.g.
It think this was implemented for cleaning persistent temps in the first place, but nowadays it also let's one just create a folder hierarchy. This is very handy esp. for tmpfs, though these start empty.
The situation is following: If a tmpfs is set up it might be have restricted write access. For example a service user account/group shall get access to there, it will fail, because after the tmpfs was emptied it couldn't create any folder or file. But the tmpfiles.d configs help here out: It would create the service user's subfolder right after / while booting though the service can access this folder as it's own, while the root of tmpfs is still protected but maybe shared by different service's users.
Alternative implementations are welcome, but workarounds might do the trick, too. =)
Thanks in beforehand.
Kind regards
Dom
I'm feeling still pretty new to FreeBSD, while I'm on it since half a year. And I am still missing a very essential feature extending the tmpfs's abilities.
By the nature of any tmpfs, e.g.
/run
is empty after every boot. So far this is not a problem, but I would like to have a predefined folder hierarchy in some situations. On Linux this can be done by adding a file into /etc/tmpfiles.d/*.conf
, which holds the information of names, owner, group, permissions, and last but not least cleanup settings if wanted.It think this was implemented for cleaning persistent temps in the first place, but nowadays it also let's one just create a folder hierarchy. This is very handy esp. for tmpfs, though these start empty.
The situation is following: If a tmpfs is set up it might be have restricted write access. For example a service user account/group shall get access to there, it will fail, because after the tmpfs was emptied it couldn't create any folder or file. But the tmpfiles.d configs help here out: It would create the service user's subfolder right after / while booting though the service can access this folder as it's own, while the root of tmpfs is still protected but maybe shared by different service's users.
Alternative implementations are welcome, but workarounds might do the trick, too. =)
Thanks in beforehand.
Kind regards
Dom