Linux – Run Redis or Memcached as root or non-root?

Run Redis or Memcached as root or non-root?… here is a solution to the problem.

Run Redis or Memcached as root or non-root?

Does it matter if you run Redis or Memcached as root or non-root?

I’m considering creating a non-sudo Redis/Memcached user and running caching as that user. I’ll make all the files owned by that non-sudo user. What are the advantages and disadvantages of this setup?

Solution

Redis can write files! Running him as root is a big security issue.
More information about https://github.com/antirez/redis/issues/3594

Related Problems and Solutions