wsld icon indicating copy to clipboard operation
wsld copied to clipboard

How to run automatically without root?

Open davidhsv opened this issue 4 years ago • 3 comments

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.

davidhsv avatar Apr 08 '21 23:04 davidhsv

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>.

nbdd0121 avatar Apr 22 '21 01:04 nbdd0121

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.

davidvieiratrustly avatar Apr 27 '21 12:04 davidvieiratrustly

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.

nbdd0121 avatar Apr 27 '21 19:04 nbdd0121