I have a program that creates a socket, and then I want to change the permissions of the socket file:
ret_val = chmod(filename, 0777);
but it does not change, although ret_val will be 0. If I try to use the same thing in a regular file, it works.
Any ideas?
PS: I run the program as root, so it has all the necessary permissions.
Claudiu
source share