Giter Club home page Giter Club logo

Comments (7)

Infinidoge avatar Infinidoge commented on September 28, 2024 1

As of currently, I just attach as root. Attaching doesn't affect permissions itself (though it necessitates having root access to read the console), it just bypasses tmux's permissions check and lets it through, from my understanding.

from nix-minecraft.

NotNite avatar NotNite commented on September 28, 2024

What's the expected way to connect to the tmux socket, in the meantime? I feel that attaching as root will mess up permissions, and I'm not sure how to attach as the minecraft user.

from nix-minecraft.

baduhai avatar baduhai commented on September 28, 2024

Why use a tmux socket over a systemd socket? This is how the server module in nixpkgs works, and it should also take care of user/group permissions.

from nix-minecraft.

Infinidoge avatar Infinidoge commented on September 28, 2024

The reason why I chose a tmux socket was because it allowed the terminal to be directly attached to, as opposed to interacted with via RCON or directly piping text into stdin.

Compared to directly attaching to the console via tmux or similar, both of those solutions are, to me, very inconvenient with how much I actively work from the server console.

from nix-minecraft.

Infinidoge avatar Infinidoge commented on September 28, 2024

There is currently a draft PR open (#41) which would introduce an option to use systemd sockets, if that is something you are interested in.

from nix-minecraft.

gellis12 avatar gellis12 commented on September 28, 2024

Not entirely sure if this'll be useful for your project, but figured I'd chime in and mention that I got tmux working on my system by adding nobody to the server-access acl, and setting PrivateUsers=true in the systemd unit file (which is probably a good idea in any long-running networked application, tbh)
This brought it back to the same functionality as previous tmux versions, where you just had to make sure that group rw permissions are set, and then anyone from the minecraft group can interact with the tmux server.

from nix-minecraft.

Infinidoge avatar Infinidoge commented on September 28, 2024

While it is a bit hacky, that would work perfectly! Thanks for letting me know! I'll do some testing with it first just to make sure, then I'll try to push out a fix with it.

from nix-minecraft.

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.