ports/92755: databases/slony1: Add ability to run slon as a different user
Jim C. Nasby
decibel at decibel.org
Tue Feb 7 01:20:07 UTC 2006
The following reply was made to PR ports/92755; it has been noted by GNATS.
From: "Jim C. Nasby" <decibel at decibel.org>
To: Vivek Khera <vivek at khera.org>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/92755: databases/slony1: Add ability to run slon as a different user
Date: Mon, 6 Feb 2006 17:30:17 -0600
On Mon, Feb 06, 2006 at 04:04:55PM -0500, Vivek Khera wrote:
> I'll accept this enhancement.
>
> But doesn't setting the slon_user variable automatically make it run
> under that user? I'm wondering what the point of the slon_command()
> function is. The only difference is the normal way would run with
> 'su -m' but yours does 'su -l'. I think the former is preferable
> since it doesn't require slony_user have a valid shell or password.
Hrm, is there magic in the rc system to account for slon_user? I just
copied what the pgsql port does...
> Also, the variable slon_user should be filtered through %%NAME%%
> expansion, and might be best located down where the enable flag is
> defaulted, too.
I'm sure there's all sorts of better ways to do what I did... feel free.
:)
BTW, if you want to get fancy, there's currently nothing in the port
about creating a user account. Might be best to just run under a slony
user by default...
--
Jim C. Nasby, Database Architect decibel at decibel.org
Give your computer some brain candy! www.distributed.net Team #1828
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
More information about the freebsd-ports-bugs
mailing list