Is it possible in C on Unix to write to a file not owned by the program executor, and the file has r--r--r-- privileges?
The reason I ask is because this is what SCCS seems to do and I want to do the same thing. All SCCS files are created with r--r--r-- privileges, but anyone using the SCCS commands can write their changes to the files. I had assumed it was to do with setting the effective user ID within the process, but the executor must have privilege to do this as well.
The reason I ask is because this is what SCCS seems to do and I want to do the same thing. All SCCS files are created with r--r--r-- privileges, but anyone using the SCCS commands can write their changes to the files. I had assumed it was to do with setting the effective user ID within the process, but the executor must have privilege to do this as well.