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

Re: FHS compliance and UNIX sockets

Brian May <bam@debian.org> writes:

> >>>>> "Oliver" == Oliver Elphick <olly@lfix.co.uk> writes:
>     >> From the FHS: (v2.1, same section) Note: programs that run as
>     >> non-root users may be unable to create fil es under /var/run
>     >> and therefore need a subdirectory owned by the appropriate
>     >> user.
>     Oliver> So the package should provide /var/run/<package> for them
>     Oliver> to use?
> Depends on how you interpret: "...owned by the appropriate user".
> Now what on earth does that mean? The user who needs to create the
> file/socket?
> Using /var/run/<package> would be a serious limitation unless you made it
> drwxrwxrwt (or used setUID/setGID stuff), because multiple users can use
> these programs at the same time.

I would use ${HOME}/.${PACKAGE}/some-socket if a user needed a socket
(similar to emacs's (start-server) sometimes using ~/.eserv (I think)
as the socket).

Reply to: