Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Packwiz support HOT 3
- Is this solely a packages repository? HOT 4
- Only one tmux socket is accessible at a time HOT 2
- Forge support HOT 7
- Cannot launch server in safe mode
- legacy fabric support HOT 6
- Code from nix-minecraft-servers HOT 3
- Indescriptive error on port overlap assertion HOT 1
- nix flake show report error HOT 1
- Datapack Management not possible with Current Symlink Implementation HOT 3
- Package Waterfall proxy
- Package Purpur servers
- Upstream to nixpkgs HOT 1
- [Support] Configuration issues HOT 13
- Feature Request: Allow adding to server PATH HOT 1
- Enhanchment: Transfer documentation from the module to README.md HOT 6
- Fabric 1.20.4 not working HOT 2
- Feature Request: BTA (Betterthanadventure) & BTW (Betterthanwolves) Support HOT 1
- Quilt issue: quilt_loader missing HOT 9
- Feature Request: Using the module without Tmux HOT 7
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 nix-minecraft.