cugblbs / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

memcached daemon priviliges (->nobody) and socket #318

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.# memcached -s /var/run/m.sock -u nobody -d
2.# memcached -s /var/run/m.sock -u root -d
where /var/run belongs to root:root 0755

What is the expected output? What do you see instead?
 Typically a daemon should create socket first and then switch to nobody user. But here somehow it cannot create the sock unless -u root is specified.

What version of the product are you using? On what operating system?
 memcached-1.4.13-0.2 i386 from official repository, Debian wheezy

Please provide any additional information below.
 Listening to below port 1024 is also affected by the user setting

Original issue reported on code.google.com by msg7...@gmail.com on 27 Apr 2013 at 10:48

GoogleCodeExporter commented 9 years ago
closing old issues (fixing this alltogether at some point, though)

Original comment by dorma...@rydia.net on 5 Jul 2015 at 5:25