Skip to content
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

reload authkeys from users.cfg #16

Open
trasherrrr opened this issue May 23, 2023 · 3 comments
Open

reload authkeys from users.cfg #16

trasherrrr opened this issue May 23, 2023 · 3 comments

Comments

@trasherrrr
Copy link

trasherrrr commented May 23, 2023

remod has this neat way of reloading auth keys (via #syncauth) while the server is running, making adding (or, if needed, deleting) someones keys fairly easy. Now I was wondering if zeromod got something similar since restarting the server everytime for anything (not just key-reloading) feels a bit too overloady and unnecessary..
I was, furthermore, wondering if zeromod supports additional auth servers by default..

@andrius4669
Copy link
Owner

reloading via sighup and sigusr1 is available.
also, yes, multiple key servers are supported, you can delegate per auth domain.

@trasherrrr
Copy link
Author

thanks for the quick response! I later found sigusr1 via the readme of the older zeromod but couldnt quite see how to use this command (or #exec in that regard) - ultimatly, kill -SIGHUP -1 did the job (but also "killed" the putty session(?) - im, admittedly, a new to ubuntu/unix systems).
I didnt try my luck on the multiple auth keys yet, Im assuming its done like here? (simply adding the keys with their respective domains into users.cfg and exec'ing it via server-init.cfg?

I hate to ask this but is there any other way/place to ask "simple" questions like these? Github merges/Discussion Forums feel too quirky for me in that regard & I couldnt find any real documentation (especially about the root PRIV) + zeromod seems to be quite the niche in that regard.

@andrius4669
Copy link
Owner

you gotta use killall or pkill if u wanna use name of executable. these are kinda more handy for newcommers than playing with PIDs.
also yes for text file authkey spec u gotta either put them server-init.cfg or some file exec'd by server-init.cfg. don't forget clearauthkeys cmd before additions, that's valuable for reload cases.
old readme abt it has some extra authkey modes and IIRC current zeromod does that stuff a bit differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants