<p dir="ltr">If this possible with systemd,why not use it? If not - I check pam_mount</p>
<div class="gmail_quote">18 Май 2016 г. 22:17 пользователь "killermoehre" <<a href="mailto:killermoehre@gmx.net">killermoehre@gmx.net</a>> написал:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="elided-text">Am 18.05.2016 um 21:14 schrieb Vasiliy Tolstov:<br>
> I need to mount tmpfs on .cache for each user after login.<br>
> How can I do that with systemd?<br>
> S<br>
> For example I want for user1 mount tmpfs on dir .cache, for user2 mount<br>
> .cache to tmpfs also and so on.<br>
> After logout last session for this user, I need to unmount it...<br>
</div>IMHO you should use pam_mount [1] for this instead.<br>
<br>
[1] <a href="http://pam-mount.sourceforge.net/" rel="noreferrer" target="_blank">http://pam-mount.sourceforge.net/</a><br>
</blockquote></div>