Re: Multiple paths in a module?

Perry Hutchison via rsync <[email protected]>
Newsgroups gmane.network.rsync.general
Message-ID <6223cdf3.KiZFjHTPcJ30XPPa%[email protected]>
Glen Huang via rsync <[email protected]> wrote:

> ... the mounting paths are dynamically configured in another
> service, so I need to remount whenever the paths change
> if I mount them beforehand.

Could the remount be done in that other service?

> With the "early exec" hook, I can avoid such remounting,
> but it's only doable with root...

General approach when only part of a job requires root:

1.  Set the remount program permissions to
    -r-sr-xr--  root  foo
    (i.e. setuid root, executable only by group foo).
    The program must be an executable binary, not a script.

2.  Ensure that the service which will run the remounter
    -- and only that service -- runs as group "foo".

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.