[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Files on /dev/shm/ disappear



On Wed 02 Mar 2022 at 14:28:07 (+0000), Andy Smith wrote:
> On Wed, Mar 02, 2022 at 07:54:53AM -0500, Greg Wooledge wrote:
> > Someone who knows systemd, dbus, and all that stuff might be able to
> > suggest next steps.
> 
> I'm not really that person but yes, logind removes things from
> /dev/shm for a user if it's not a system user, when that user's
> session ends. Which has caused even greater confusion than this,
> before:
> 
>     https://github.com/systemd/systemd/issues/4532
> 
> In terms of avoiding this affecting OP, firstly normal users
> probably shouldn't be using /dev/shm for routine storage. I would
> suggest /tmp, /var/tmp or /run/user/$UID/.

AIUI though, the first two are backed by real disks on Debian
(by default), and using the last one to share objects means
having to fiddle with permissions because each $UID has
exclusive access to their own subdirectory. (The OP involved
two users.)

(The reason I use /dev/shm myself is that it's B I G. But I don't
suffer from the issue under discussion because I'm logged in.)

Cheers,
David.


Reply to: