[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Re: MacOS X fetchnews permission denied
Yvon Thoraval <yvon_thoraval@xxxxxxx>:
> [nord-mon-ip:/sw/etc/leafnode] yvonthor% sudo -u news /sw/sbin/fetchnews
> Password:
> mkstemp(/sw/var/run/fetchnews.lck.yagHXTM820) failed: Permission denied
> Cannot obtain lock file, aborting.
>
> i should mention /sw/var/run/ is empty and is ::
>
> drwxr-xr-x 2 root admin 68 Jan 18 18:59 run
this directory is customarily used by programs to keep lockfiles and
such. you should make it group writable ("chmod 0775 /sw/var/run")
and include user news into group admin. an alternative is to make
that directory world writable "chmod 01777 /sw/var/run". the most
significant bit has (on unix) often the meaning "sticky", which means
only programs creating files there may delete them again. this may be
different on mac-os.
the program will run if you make var/run 0777 (without making it
sticky), but that's dangerous. try the group option 0775 first.
> the only directory (as i've seen) being news.news is :
>
> /sw/var/spool/news
>
> all of is content being news.news
that's ok.
and, btw, read books on unix.
clemens
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list