Giter Club home page Giter Club logo

Comments (3)

vaeth avatar vaeth commented on June 12, 2024

I do not think there is a reasonable way around being root for this script: After all, for executing the umount on shutdown, it is necessary to read the mounted data, and it would be a security risk to let some user write there. (Not to speak that also most mount/umount commands also require root permissions for a reason.)

What I would do in your case is to replace the first line by "#!/usr/bin/perl" (this is automatic if you install from the mv overlay) and create sudo rules by allowing
/usr/bin/squashmount stop|start [user's mountpoint]
to be executed as root by the user (with the usual restrictions of sudo of cleaning the environment etc.) without a password. Unless squashmount has a serious bug, this should be reasonably safe.

from squashmount.

i30817 avatar i30817 commented on June 12, 2024

Mmm, i'm going to use a homegrown solution of unionfs-fuse (in the repos) and squashfuse. Speed is not ultra important for dosgames and there are very few writable files in games anyway and they tend to be config or saves anyway.

It's a pity that overlay requires root thou.

from squashmount.

vaeth avatar vaeth commented on June 12, 2024

Since squashmount v15.0.0 there is now the possibility to use squashfuse instead of squashfs.

If combined with unionfs-fuse , adapted location for /etc/squashmount.pl and /run/squashmount, and adapted defaults for the options, it is then possible to use squashmount in user mode.

The new switch --user makes all corresponding changes ('though one can still override particular ones, of course).

Thus, I consider this bug now as closed. (I did not do too serious tests for user mode, 'though. Please open a new bug if you run into problems.)

from squashmount.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.