steven@pearl.berkeley.edu.UUCP (05/05/87)
Hi, all of you UNIX wizards, I need some help! There are some problems I need to solve but don't have anybody to ask: - I have a publically accessable program written and running. It keeps a log file and some other statistics. In order for the program to be able to write to these files, I must make the files globally writable. This, however, is undesirable because nasty people (scums) may edit the files themselves and make themselves god in the program. The problem is, a user will run the program under his own uid. How can I ensure that the special files are globally accessable only THROUGH the program? I know there are ways to do it, and it should be easy, but I just don't have anybody to ask. - I am working on a multi-user program. Each user will spawn a front-end process and only ONE backend process will be serving them all. I need somebody to help me understand: 1. How to spawn only ONE backend process 2. How to communicate between the frontend and backends 3. How to make the backend running under MY uid 4. If possible, how to enable frontends to run on other machines I know there are something called signals (?), messages (?) etc. in the system calls which can do that. - What is the use of making a process daemon? I know these questions are probably trivial for you guys. Any help will be heartily appreciated. Please mail to steven@pearl.Berkeley.EDU and don't post to the net because I don't usually read this news group. Thanks a lot! - Stephen Chung