Giter VIP home page Giter VIP logo

Comments (9)

flaviotsales avatar flaviotsales commented on August 11, 2024 1

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.

msoap avatar msoap commented on August 11, 2024

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.

flaviotsales avatar flaviotsales commented on August 11, 2024

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.

msoap avatar msoap commented on August 11, 2024

image

not reproducing, tail has the same behavior under shell2http and without

from shell2http.

flaviotsales avatar flaviotsales commented on August 11, 2024

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

image

from shell2http.

msoap avatar msoap commented on August 11, 2024

Oh, yes, applications from snap packages have their own sandbox which provides many limitations, for example restrict access to the host filesystem.

from shell2http.

msoap avatar msoap commented on August 11, 2024

Nothing can be done here, with snap shell2http. Please use deb-package or binary from github releases or build from source.

from shell2http.

flaviotsales avatar flaviotsales commented on August 11, 2024

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.

msoap avatar msoap commented on August 11, 2024

You're welcome

from shell2http.

Related Issues (20)

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.