Alex Buell wrote:
>
> --- main.c.orig Thu Sep 23 19:51:45 1999
> +++ main.c Thu Sep 23 19:48:44 1999
> @@ -1008,6 +1008,7 @@
> if ((pidfile = fopen(pidfilename, "w")) != NULL) {
> fprintf(pidfile, "%d\n", getpid());
> (void) fclose(pidfile);
> + chmod(pidfilename, 0660);
How about 0644 ?
> } else {
> error("Failed to create pid file %s: %m", pidfilename);
> pidfilename[0] = 0;
>
> However, I know this isn't the right fix. I am of the opinion that the
> owner of the pidfile should be set to the person who started up pppd (i.e
> me, not root). This then will means I can kill my little pppd daemon
> easily and not be effected by the umask of 077. This is more secure too,
> and can be overriden by root anyway.
I don't know if giving ownership of a file in a system directory to a
regular user is a good idea.
Maybe pppd should set umask() to a reasonable value globally to prevent
problems elsewhere, too. I haven't checked other places of
file-creations, though.
Harri.
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]