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

How to run automatically without root? #13

Open
davidhsv opened this issue Apr 8, 2021 · 3 comments
Open

How to run automatically without root? #13

davidhsv opened this issue Apr 8, 2021 · 3 comments

Comments

@davidhsv
Copy link

davidhsv commented Apr 8, 2021

When running wsld using the instructions on the doc, it show this error:

Failed to listen: Operation not permitted (os error 1)

If I run the command with sudo wsld, everything works fine.

@nbdd0121
Copy link
Owner

If you are using time synchronisation, then you need to grant wsld cap_sys_time capability so it can adjust system time for you. You can add the cap with sudo setcap cap_sys_time+eip <PATH to wsld>.

@davidvieiratrustly
Copy link

Already did that, but still get the Failed to listen: Operation not permitted (os error 1) error.

Only works with a do a sudo wsld. That makes me unable to run in the startup.

@nbdd0121
Copy link
Owner

nbdd0121 commented Apr 27, 2021

Could you check if you have enough permission to create files in /tmp/.X11-unix then?

If you only reason to not use sudo is startup script, you can configure sudo to not require password to run wsld, or use setuid. You can follow instructions in https://unix.stackexchange.com/questions/18830/how-to-run-a-specific-program-as-root-without-a-password-prompt.

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

3 participants