LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-22-2016, 08:29 AM   #1
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Rep: Reputation: 21
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?
 
Old 08-22-2016, 12:44 PM   #2
af7567
Member
 
Registered: Nov 2012
Posts: 295

Rep: Reputation: 106Reputation: 106
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
 
1 members found this post helpful.
Old 08-22-2016, 12:59 PM   #3
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
Thank you, I'll check that out
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error (Cannot connect to unix socket '/var/lib/clamav/clamd.socket': connect: No such file or directory) Toadman Ubuntu 1 08-10-2016 06:00 PM
[SOLVED] why local socket does not work if the socket file exist before? golden_boy615 Programming 4 12-14-2011 08:26 AM
diff between file fd and socket fd vdx Linux - Kernel 0 05-14-2011 03:08 AM
unix socket file jahanzeb1982 Linux - Networking 1 03-22-2008 08:57 AM
what is a socket file?? augustus123 Linux - Distributions 3 12-06-2004 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration