Comments (9)
For posterity, here are the details of the snap isolation rules:
https://snapcraft.io/docs/snap-confinement
https://snapcraft.io/docs/permission-requests
Installing from snap with --devmode
option also solves the permission issue by giving the program full access to systems resources.
from shell2http.
Do you definitely run both commands (shell2http
and tail
) under the same user?
tail
and tail
under shell2http
should work the same, i checked it now.
Maybe try copying the log-file to the current directory and run tail logfile.log
, what will be happened?
from shell2http.
Yes, both command were executed by the root user.
Copying the file to the current directory and running tail logfile.log
is working with or without the "x" permission in the parent folders.
The tail
command inside shell2http -port=80 / "tail /many/folders/logfile.log"
is working only if all parent folders of logfile.log
have the "x" permission, regardless of the logfile being moved up or down some directories.
from shell2http.
not reproducing, tail
has the same behavior under shell2http
and without
from shell2http.
Something very weird is going on...
shell2http is the snap version
shell2http/shell2http is compiled from source (git clone
and go build
)
Same result with go get
from shell2http.
Oh, yes, applications from snap packages have their own sandbox which provides many limitations, for example restrict access to the host filesystem.
from shell2http.
Nothing can be done here, with snap shell2http. Please use deb-package or binary from github releases or build from source.
from shell2http.
I would never thought of that. Now that I know what the issue is, I'm starting to find some problems related to that while searching.
Compiling the program myself definitely solves the issue for me.
Thanks for your help, greatly appreciated.
from shell2http.
You're welcome
from shell2http.
Related Issues (20)
- may support read cig/shell script from file HOT 1
- Rebuild docker hub image HOT 1
- Default working dir on start HOT 3
- Passing Spaces in `$v_params` to Command HOT 3
- "No such file or directory" err HOT 3
- How can get request body from command? (question) HOT 2
- Parsing of ASCII encoding not working for all characters HOT 1
- Create new shell2http binaries to solve CVE-2016-2183 HOT 3
- support async call on windows HOT 2
- Support parameter transfer command HOT 2
- What are these logs? HOT 1
- I would like to prohibit executing some commands when using shell2http HOT 1
- Regarding Required Installation and Operation Storage Space HOT 1
- Ability to define multiple endpoints in dockerfile HOT 1
- Support configuration file method HOT 5
- Using a POST request to write JSON to script stdin HOT 1
- Create routes to shell mappings using JSON HOT 1
- Documentation for docker should include details about using --init HOT 2
- Streaming endpoints HOT 2
- logging to file does not include stderr from shell commands HOT 2
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 shell2http.