You are not logged in.

#1 2012-06-24 00:05:08

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

mount a tmpfs as user at boot

hey all,

i mount my ~/.cache as a 'tmpfs' from the /etc/fstab ,but when i check with 'chown' the owner is root (obviously) and mode=1777

NOT a good idea to have a root dir with mode=1777 i guess ,i wanna change the owner at boot as 'user'

can't find a good solution.... or my eyes are crossed  big_smile




EDIT;  think i found it http://kb.iu.edu/data/adwf.html

Last edited by gregor (2012-06-24 00:41:31)

Offline

#2 2012-06-24 01:11:09

ZekeSulastin
Member
Registered: 2010-09-20
Posts: 266

Re: mount a tmpfs as user at boot

Err, why not use something like anything-sync-daemon or a custom script using rsync -a (look up --archive in man rsync) to load your cache into one of the tmpfses already there with the permissions you need?  It'll even be persistent across boots smile

Aside from that, you should really take a look at man mount.

Offline

#3 2012-06-24 01:26:44

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: mount a tmpfs as user at boot

mmmmh i used UID= and GID= instead of uid= and gid=

it's late now gonna try tomorrow

https://wiki.archlinux.org/index.php/An … ync-daemon   gonna look into that

thnx

Offline

Board footer

Powered by FluxBB