/usr/share/lua/5.2/socket.lua is in lua-socket 3.0~rc1-3.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/lua/5.2/../5.1/socket.lua
/usr/share/lua/5.2/../5.1/socket.lua