-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running tmate-slave as non-root user #40
Comments
I yield to the maintainers and their recommendations, but here's a stab at some things to look into... Source modificationChanging the port and removing rootYou might be interested in the following lines of #ifdef DEVENV
#define TMATE_SSH_DEFAULT_PORT 2200
#else
#define TMATE_SSH_DEFAULT_PORT 22 // <--- This
#endif Removing root requirementYou would also need to comment this out in if (getuid() != 0)
tmate_fatal("Need root priviledges"); Notes:
No source modificationConfigChange the port in
Kernel CapabilitiesIf you must run something below 1024 without root, you might want to have a look at kernel capabilites. Specifically Notes:
Good luck! |
In addition to what @jwhett said above, you need these capabilities on the binary:
|
I wanted to confirm what all steps need to be taken to run tmate server without root privileges; I am able to compile file and run using a random large port but when I try to access this tmate server by creating a tmate session I get - fatal: Need root priviledges
As far as I understand I should be able to run without root as long as I'm not interested in using port 22.
The text was updated successfully, but these errors were encountered: