vramfs icon indicating copy to clipboard operation
vramfs copied to clipboard

Ubuntu 22.04 and permissions

Open Myria-de opened this issue 1 year ago • 1 comments

  1. On Ubuntu 22.04 it is not possible to load Vramfs without elevation. You have to raise the limits in „/etc/security/limits.conf", i.ex.:
User hard memlock unlimited
User soft memlock unlimited
User hard rtprio unlimited
User soft rtprio unlimited

Where "User" is the name of your user account.

  1. This is a suggestion. The fuse directory is not accessible by other users. Therefore you ran into problems if you start Vramfs without elevation and a tool runs under the root account in this directory (or the other way round). In this situation it is helpful to add
fuse_opt_add_arg(&args, "-oallow_other");

at the end of vramfs.cpp. In "/etc/fuse.conf" you have to remove the "#" before "user_allow_other". After this the Vramfs-Directory is accessible by everyone. Maybe there are security concerns. But on a private computer i see no problems.

Myria-de avatar Jul 07 '23 14:07 Myria-de

About adding

fuse_opt_add_arg(&args, "-oallow_other");

in the vramfs.cpp:

it needs the user_allow_other directive to be present in /etc/fuse.conf (commented by default on debian 12 as an example).

eric-glb avatar Nov 06 '23 12:11 eric-glb