Overv / vramfs

VRAM based file system for Linux
1.26k stars 65 forks source link

Ubuntu 22.04 and permissions #36

Open Myria-de opened 1 year ago

Myria-de commented 1 year ago
  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.

  2. 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.