I'm trying to create a ramfs mount point in /tmp/ram using:
Created an entry in
/etc/fstabwith the following line:ramfs /tmp/ram ramfs rw,nodev,noexec,nosuid,async,user,noauto 0 0(I've also tried replacing
userwithusers. Also tried usingx-mount.mkdir=0770)Created a directory with permissions 0775 at
/tmp/ramusing normal user (notroot).Mounted the
ramfsfilesystem using the commandmount /tmp/ramusing 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.
tmpfsinstead oframfswhere you can specify theuid,gidandmodeof the mounted ramdrive.tmpfs. Theramfsfilesystem seems to be exactly what I need - a pure RAM storage.