1

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

I'm thinking of creating a non-sudo Redis/Memcached user, and running the cache as that user. I would make all files owned by that non-sudo user. What would be the pros and cons of such a setup?

JeffLL
  • 1,875
  • 3
  • 19
  • 30

2 Answers2

1

Redis is able to write file ! Running him as root is a BIG security issue. More info on https://github.com/antirez/redis/issues/3594

mrdotb
  • 612
  • 6
  • 15
-1

There should be no consequences as long as the directories and files used by Redis are all accessible by non-root user.

Chhavi Gangwal
  • 1,166
  • 9
  • 13