0
votes

I have a file and I see it in the system

ls -la
srwxr-xr-x 1 root root 0 Apr 7 08:07 ssh-server

But I'm not able to view, copy, move or edit it

cp ssh-serve /tmp/
cp: cannot open 'ssh-server' for reading: No such device or address

I notice that there's an "s" in the file type, at the very beginning of the permission.
srwxr-xr-x 1 root root 0 Apr 7 08:07 ssh-server

Can I chmod the "s" to a "-" for this file??

1

1 Answers

1
votes

It's a socket, which means that there is a process, using this file. As a result, when you modify or delete it, that process might not be working anymore.