Problem : chmod -rw-rw-rw- to srw-rw-rw-
The question is simple.
I have these to files:
-rw-rw-rw- 1 popuser root 0 Nov 18 11:26 spamd_full.sock
-rw-rw-rw- 1 popuser root 0 Nov 18 11:26 spamd_light.sock
and I want to change them with the permissions like these 2:
srw-rw-rw- 1 popuser root 0 Aug 22 11:29 spamd_full.sock
srw-rw-rw- 1 popuser root 0 Aug 22 11:29 spamd_light.sock
so I did chmod 666 spamd_*
but the problem is how do I give the “s” before “rw” ?
Solution: chmod -rw-rw-rw- to srw-rw-rw-
Oh – I guess You want change the regular file into socket – no way. The spamassasing have to create it by itself. You can just remove the file, so there’s room for the socket.
If You insist, I can provide You perl one-liner to create sockets