Comments (3)
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.
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.
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)
- Check for squashfs support before deleting source dir HOT 2
- emerge --sync error after resquashing HOT 4
- Ghost files after deletion on JFS filesystem HOT 6
- Failure to mount rw overlay with built-in modules HOT 2
- fuse: unknown option(s): `-o nonempty' HOT 3
- `SRC_URI` doesnโt use HTTPS HOT 5
- Perl errors after first mount in 7.3 HOT 2
- [/etc/squashmount.pl] comments minor modifications HOT 1
- running squashmount in a cron script HOT 3
- MemoryDenyWriteExecute option not met HOT 12
- Conflicts of squashmount and qt5 directory? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squashmount.