Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
quot;. Maybe I should try to place "export KRB5_KTNAME=/home/svn/svn.keytab" there. At least /etc/rc.conf.d/svnserve will be sourced only once at svnserve startup, and not hundreds of times like rc.conf. But anyway, I don't like the idea of placing commands (not variables) in /etc

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
Da Rock wrote: [dd] > >I really don't know what the security implications will be if > >/etc/krb5.keytab is readable by anyone besides the root user? Do you > >have a clue about it? There are other services' keys stored there > >besides svn (host/*, cvs/* etc). > > > > > At the risk of getting

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 15:29:01 +0600 Victor Sudakov wrote: > RW wrote: > > > > > > > > > I'm not sure this will work. The initial question was about > > > > > how to obtain an environmental variable. If the rc.d script > > > > > of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, > > > > >

Re: rc.d and environment variables

2010-12-24 Thread Da Rock
On 12/24/10 19:37, Victor Sudakov wrote: Da Rock wrote: Doesn't the rc.d script run as root initially and then a method (default flags, etc) is used to change the owner to a nobody (restricted privilege user)? Just my 2c, but please correct me if I'm wrong. That is prob

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
Da Rock wrote: > > > > > >>Doesn't the rc.d script run as root initially and then a method (default > >>flags, etc) is used to change the owner to a nobody (restricted > >>privilege user)? Just my 2c, but please correct me if I'm wrong. > >> > > > >That is probably correct, rc.subr does "su

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
RW wrote: > > > > > > > I'm not sure this will work. The initial question was about > > > > how to obtain an environmental variable. If the rc.d script > > > > of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, > > > > it is okay, > > > > > > They do. rc.d scripts all start by sucking i

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 09:34:27 +0600 Victor Sudakov wrote: > Lowell Gilbert wrote: > > > > > I'm not sure this will work. The initial question was about > > > how to obtain an environmental variable. If the rc.d script > > > of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, > > > it is o

Re: rc.d and environment variables

2010-12-24 Thread Da Rock
On 12/24/10 18:03, Victor Sudakov wrote: Da Rock wrote: [dd] Doesn't the rc.d script run as root initially and then a method (default flags, etc) is used to change the owner to a nobody (restricted privilege user)? Just my 2c, but please correct me if I'm wrong. That is probably co

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
Da Rock wrote: [dd] > Doesn't the rc.d script run as root initially and then a method (default > flags, etc) is used to change the owner to a nobody (restricted > privilege user)? Just my 2c, but please correct me if I'm wrong. That is probably correct, rc.subr does "su -m $user", but the log

Re: rc.d and environment variables

2010-12-23 Thread Da Rock
variables cannot be controlled by the rc.d framework, as far as I understand. Using login classes to define them should be the correct way. > From "man login.conf": setenv listA comma-separated list of environment variables and

Re: rc.d and environment variables

2010-12-23 Thread Victor Sudakov
s cannot be controlled by the rc.d > framework, as far as I understand. Using login classes to > define them should be the correct way. > > >From "man login.conf": > > setenv list A comma-separated list of > environme

Re: rc.d and environment variables

2010-12-23 Thread Victor Sudakov
Polytropon wrote: > > I have tried putting "setenv KRB5_KTNAME /home/svn/svn.keytab" in > > ~svn/.cshrc, it does not help. Evidently the svn user's login shell is > > not called when "/usr/local/etc/rc.d/svnserve start" is called. > > I did already assume something like that. This mechanism > reli

Re: rc.d and environment variables

2010-12-23 Thread Victor Sudakov
Lowell Gilbert wrote: > > > I'm not sure this will work. The initial question was about > > how to obtain an environmental variable. If the rc.d script > > of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, > > it is okay, > > They do. rc.d scripts all start by sucking in rc.subr, which

Re: rc.d and environment variables

2010-12-23 Thread Victor Sudakov
Polytropon wrote: [dd] > > Anyway, if svnserve is able to be passed a command string > to, a setting like > > svnserve_flags="... -k /home/svn/svn.keytab ..." No, this is not a svnserve option, it is a setting used by libsasl2 with which svnserve is linked (or even by libkrb5.so). > >

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
al variables cannot be controlled by the rc.d framework, as far as I understand. Using login classes to define them should be the correct way. >From "man login.conf": setenv listA comma-separated list of environment variables and

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
On Fri, 24 Dec 2010 09:07:35 +0600, Victor Sudakov wrote: > I have tried putting "setenv KRB5_KTNAME /home/svn/svn.keytab" in > ~svn/.cshrc, it does not help. Evidently the svn user's login shell is > not called when "/usr/local/etc/rc.d/svnserve start" is called. I did already assume something l

Re: rc.d and environment variables

2010-12-23 Thread Victor Sudakov
Jerry McAllister wrote: > > > > > > The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need > > > to > > > pass the environment variable KRB5_KTNAME=/home/svn/svn.keytab to the > > > daemon on start. How do I do that? > > > > If the user corresponding to the svnservice has a log

Re: rc.d and environment variables

2010-12-23 Thread Victor Sudakov
Polytropon wrote: > > > > The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need to > > pass the environment variable KRB5_KTNAME=/home/svn/svn.keytab to the > > daemon on start. How do I do that? > > If the user corresponding to the svnservice has a login > shell, which would u

Re: rc.d and environment variables

2010-12-23 Thread Lowell Gilbert
Polytropon writes: > I'm not sure this will work. The initial question was about > how to obtain an environmental variable. If the rc.d script > of svnserve sources /etc/rc.conf and/or /etc/rc.conf.local, > it is okay, They do. rc.d scripts all start by sucking in rc.subr, which in turn pulls i

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
On Thu, 23 Dec 2010 14:14:43 -0500, Jerry McAllister wrote: > On Thu, Dec 23, 2010 at 08:12:49PM +0100, Polytropon wrote: > > > On Thu, 23 Dec 2010 23:27:52 +0600, Victor Sudakov > > wrote: > > > Colleagues, > > > > > > The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need

Re: rc.d and environment variables

2010-12-23 Thread Jerry McAllister
On Thu, Dec 23, 2010 at 08:12:49PM +0100, Polytropon wrote: > On Thu, 23 Dec 2010 23:27:52 +0600, Victor Sudakov > wrote: > > Colleagues, > > > > The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need to > > pass the environment variable KRB5_KTNAME=/home/svn/svn.keytab to the

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
On Thu, 23 Dec 2010 23:27:52 +0600, Victor Sudakov wrote: > Colleagues, > > The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need to > pass the environment variable KRB5_KTNAME=/home/svn/svn.keytab to the > daemon on start. How do I do that? If the user corresponding to the sv

rc.d and environment variables

2010-12-23 Thread Victor Sudakov
Colleagues, The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need to pass the environment variable KRB5_KTNAME=/home/svn/svn.keytab to the daemon on start. How do I do that? I tried to do this via a login class for the svn user, but it did not work. If I first 'su -l svn' and t

rc.d and environment variables

2010-12-23 Thread Victor Sudakov
Colleagues, The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need to pass the environment variable KRB5_KTNAME=/home/svn/svn.keytab to the daemon on start. How do I do that? I tried to do this via a login class for the svn user, but it did not work. If I first 'su -l svn' and t

[SOLVED] Apache environment variables - logical AND

2008-11-08 Thread Ian Smith
On Wed, 5 Nov 2008, Jeremy Chadwick wrote: > On Wed, Nov 05, 2008 at 08:24:16PM +1100, Ian Smith wrote: > > On Tue, 4 Nov 2008, Jeremy Chadwick wrote: > > > On Wed, Nov 05, 2008 at 05:33:45PM +1100, Ian Smith wrote: > > > > I know this isn't FreeBSD specific - but I am, so crave your > > in

Re: Apache environment variables - logical AND

2008-11-05 Thread Jeremy Chadwick
On Wed, Nov 05, 2008 at 08:24:16PM +1100, Ian Smith wrote: > On Tue, 4 Nov 2008, Jeremy Chadwick wrote: > > On Wed, Nov 05, 2008 at 05:33:45PM +1100, Ian Smith wrote: > > > I know this isn't FreeBSD specific - but I am, so crave your indulgence. > > > > > > Running Apache 1.3.27, using a fairl

Re: Apache environment variables - logical AND

2008-11-05 Thread Ian Smith
On Tue, 4 Nov 2008, Jeremy Chadwick wrote: > On Wed, Nov 05, 2008 at 05:33:45PM +1100, Ian Smith wrote: > > I know this isn't FreeBSD specific - but I am, so crave your indulgence. > > > > Running Apache 1.3.27, using a fairly extensive access.conf to beat off > > the most rapacious robots a

Re: Apache environment variables - logical AND

2008-11-04 Thread Jeremy Chadwick
On Wed, Nov 05, 2008 at 05:33:45PM +1100, Ian Smith wrote: > I know this isn't FreeBSD specific - but I am, so crave your indulgence. > > Running Apache 1.3.27, using a fairly extensive access.conf to beat off > the most rapacious robots and such, using mostly BrowserMatch[NoCase] > and SetEnvIf

Apache environment variables - logical AND

2008-11-04 Thread Ian Smith
I know this isn't FreeBSD specific - but I am, so crave your indulgence. Running Apache 1.3.27, using a fairly extensive access.conf to beat off the most rapacious robots and such, using mostly BrowserMatch[NoCase] and SetEnvIf to moderate access to several virtual hosts. No problem. OR condit

Re: Using global environment variables inside a subshell

2008-10-01 Thread Lowell Gilbert
Steve Bertrand <[EMAIL PROTECTED]> writes: > I've fudged together a quick disk space monitor that I will run from > cron. Running the script works fine from the command line, but when I > run it from cron, the environment variable is empty. > > Can someone point out the err of my ways?: > > #!/bin

Using global environment variables inside a subshell

2008-10-01 Thread Steve Bertrand
Hi everyone, I've fudged together a quick disk space monitor that I will run from cron. Running the script works fine from the command line, but when I run it from cron, the environment variable is empty. Can someone point out the err of my ways?: #!/bin/sh /bin/df | \ /usr/bin/awk '{if($5 ~ "%

Re: how to view environment variables

2008-06-16 Thread Chris Whitehouse
Oliver Fromme wrote: Chris Whitehouse wrote: > sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment > variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they > are set to? set and printenv don't find them. I'm using standard csh and >

Re: how to view environment variables

2008-06-16 Thread Oliver Fromme
Chris Whitehouse wrote: > sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment > variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they > are set to? set and printenv don't find them. I'm using standard csh and > FreeBSD 7.0-STABLE,

Re: how to view environment variables

2008-06-15 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Whitehouse wrote: > RW wrote: >> On Sun, 15 Jun 2008 00:27:10 +0100 >> Chris Whitehouse <[EMAIL PROTECTED]> wrote: >> >>> Hello, >>> >>> sysutils/fusefs-ntfs/files/README.FreeBSD refers to

Re: how to view environment variables

2008-06-14 Thread RW
On Sun, 15 Jun 2008 02:05:07 +0100 Chris Whitehouse <[EMAIL PROTECTED]> wrote: > RW wrote: > > On Sun, 15 Jun 2008 00:27:10 +0100 > > Chris Whitehouse <[EMAIL PROTECTED]> wrote: > > > >> Hello, > >> > >> sysutils/fusefs-ntfs/files/REA

Re: how to view environment variables

2008-06-14 Thread Chris Whitehouse
RW wrote: On Sun, 15 Jun 2008 00:27:10 +0100 Chris Whitehouse <[EMAIL PROTECTED]> wrote: Hello, sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they are set to? set and printenv don't find them

Re: how to view environment variables

2008-06-14 Thread Chris Whitehouse
Robert Huff wrote: Chris Whitehouse writes: sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they are set to? set and printenv don't find them. I'm using standard csh In that case, try &qu

Re: how to view environment variables

2008-06-14 Thread RW
On Sun, 15 Jun 2008 00:27:10 +0100 Chris Whitehouse <[EMAIL PROTECTED]> wrote: > Hello, > > sysutils/fusefs-ntfs/files/README.FreeBSD refers to various > environment variables, eg UBLIO_BLOCKSIZE and others. How do I find > out what they are set to? set and printenv don&#

Re: how to view environment variables

2008-06-14 Thread Sahil Tandon
Chris Whitehouse <[EMAIL PROTECTED]> wrote: > sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment > variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they are > set to? set and printenv don't find them. I'm using standard csh a

how to view environment variables

2008-06-14 Thread Robert Huff
Chris Whitehouse writes: > sysutils/fusefs-ntfs/files/README.FreeBSD refers to various > environment variables, eg UBLIO_BLOCKSIZE and others. How do I > find out what they are set to? set and printenv don't find > them. I'm using standard csh In that case

how to view environment variables

2008-06-14 Thread Chris Whitehouse
Hello, sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they are set to? set and printenv don't find them. I'm using standard csh and FreeBSD 7.0-STABLE, fuse.ko is loaded and ntfs-3g works

Re: environment variables

2005-04-10 Thread Jerry McAllister
> > Hi all. > In order to set an environment variable at boot time, > something like http_proxy, where would I do that? Depends somewhat on what it is and what it is for. But, many things you can set in /etc/rc.conf. Things specific to certain applications should probably be done either in their

Re: environment variables

2005-04-10 Thread Subhro
Michael S wrote: Hi all. In order to set an environment variable at boot time, something like http_proxy, where would I do that? Environment variables are not set at boot time. They are set when you o into your shell. For doing that, set yhe environment variable in .login. Regards S

environment variables

2005-04-10 Thread Michael S
Hi all. In order to set an environment variable at boot time, something like http_proxy, where would I do that? Thanks in advance. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe

Re: environment variables and hostname...

2003-11-04 Thread Lowell Gilbert
"Xpression" <[EMAIL PROTECTED]> writes: > Hi list, there is a way to list or know the environment variables, > in fact, I want to know if my hostname is stored in a variable, and all > variables that maintain the system...thanks... How to get the environment vari

Re: environment variables and hostname...

2003-11-04 Thread Scott Hiemstra
You can use the "env" command to see a list of Environment variables. On my system, it doesn't appear the hostname is in there but it may be on yours. Scott - Original Message - From: "Xpression" <[EMAIL PROTECTED]> To: "FreeBSD-questions" <[

environment variables and hostname...

2003-11-04 Thread Xpression
Hi list, there is a way to list or know the environment variables, in fact, I want to know if my hostname is stored in a variable, and all variables that maintain the system...thanks... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org