I'm trying to create a ramfs
mount point in /tmp/ram
using:
Created an entry in
/etc/fstab
with the following line:ramfs /tmp/ram ramfs rw,nodev,noexec,nosuid,async,user,noauto 0 0
(I've also tried replacing
user
withusers
. Also tried usingx-mount.mkdir=0770
)Created a directory with permissions 0775 at
/tmp/ram
using normal user (notroot
).Mounted the
ramfs
filesystem using the commandmount /tmp/ram
using normal user.
But after the mounting - the directory is always with the ownership user=root
, group=me
(me
is the username/groupname of my normal user) and permissions 0755
, which doesn't allow me to create a file in the directory.
Any idea how to proceed?
I'd like to mount that filesystem using normal user - not root...
I don't want to use root privileges at all for this mounting, that's why there's a line at /etc/fstab
.
tmpfs
instead oframfs
where you can specify theuid
,gid
andmode
of the mounted ramdrive.tmpfs
. Theramfs
filesystem seems to be exactly what I need - a pure RAM storage.