user1736786
user1736786

Reputation: 55

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??

Upvotes: 0

Views: 617

Answers (1)

Dominique
Dominique

Reputation: 17491

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.

Upvotes: 1

Related Questions