LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How can I add the 's' to a file named *.socket to make it a socket file? (https://www.linuxquestions.org/questions/linux-general-1/how-can-i-add-the-%27s%27-to-a-file-named-%2A-socket-to-make-it-a-socket-file-4175587633/)

Toadman 08-22-2016 08:29 AM

How can I add the 's' to a file named *.socket to make it a socket file?
 
I'm having a problem getting clamd to create the socket file in /var/run/clamav/clamd.socket for some odd reason. So, I used touch to create the file -rw-r--r-- 1 clamav clamav 0 Aug 21 09:04 clamd.socket of course it's not actually a socket file because the 's' is missing to make it one. Is there a way to manually add the 's' to make it one?

af7567 08-22-2016 12:44 PM

You can't just add the s after creating the file, the file has to be created as a socket. You need to delete your clamd.socket file and check the permissions on the /var/run/clamav directory to make sure that whatever user clamd is running as has write permissions on that directory. If clamd can write to the directory then when you start clamd it will create the socket. To check what user clamd is running as look for the "User" option in your /etc/clamd.conf

Toadman 08-22-2016 12:59 PM

Thank you, I'll check that out


All times are GMT -5. The time now is 06:17 PM.