'chmod File Type "s"
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??
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
