[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFD: use transient /var/run (tmpfs) or not?

On 21.09 13:29, Stephane Bortzmeyer wrote:
> On Tue, Sep 21, 2004 at 12:12:02PM +0200,
>  Matus UHLAR - fantomas <uhlar@fantomas.sk> wrote 
>  a message of 59 lines which said:
> > I would like to know your opinion about this issue. Should debian
> > packages using subdirectories in /var/run/ check for their existence
> > and create them on startup, if they do not exist?
> > 
> > Imho they should. 
> The big problem is with programs that do not run as root (/var/run is
> 0755). 
> Creating a subdirectory with appropriate owner and permissions in
> postinst is both secure and convenient (see
> /var/run/postgresql). 
> Running as root at startup is neither secure nor convenient.

startup scripts in /etc/rc?.d run as root and have privileges to
mkdir/chown/chmod the directory.

So the problem will only be, when user will wants to start it manually.
But running startup script via sudo (or its alternative) is imho better
than executing daemon manually, so I see no problem here.

Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fighting for peace is like fucking for virginity...

Reply to: