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 login

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

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 09:34:27 +0600 Victor Sudakov v...@mpeks.tomsk.su 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

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 in rc.subr, which in

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 -m $user, but the

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

Re: rc.d and environment variables

2010-12-24 Thread RW
On Fri, 24 Dec 2010 15:29:01 +0600 Victor Sudakov v...@mpeks.tomsk.su 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, it

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 laughed off

Re: rc.d and environment variables

2010-12-24 Thread Victor Sudakov
to assign limits, environment variables and login classes. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send

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

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

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
On Thu, 23 Dec 2010 23:27:52 +0600, Victor Sudakov v...@mpeks.tomsk.su 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

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 v...@mpeks.tomsk.su wrote: Colleagues, The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need to pass the environment variable

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
On Thu, 23 Dec 2010 14:14:43 -0500, Jerry McAllister jerr...@msu.edu wrote: On Thu, Dec 23, 2010 at 08:12:49PM +0100, Polytropon wrote: On Thu, 23 Dec 2010 23:27:52 +0600, Victor Sudakov v...@mpeks.tomsk.su wrote: Colleagues, The svnserve daemon is started from

Re: rc.d and environment variables

2010-12-23 Thread Lowell Gilbert
Polytropon free...@edvax.de 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

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 usually be

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 login shell, which

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
On Fri, 24 Dec 2010 09:07:35 +0600, Victor Sudakov v...@mpeks.tomsk.su 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

Re: rc.d and environment variables

2010-12-23 Thread Polytropon
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 values

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). coded in

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 in turn

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 relies on some

Re: rc.d and environment variables

2010-12-23 Thread Victor Sudakov
, 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 values to which they are to be set. I

Re: rc.d and environment variables

2010-12-23 Thread Da Rock
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 values to which

[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 indulgence.

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 and such,

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 fairly extensive

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

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 to

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: 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/sh

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, fuse.ko is loaded and ntfs

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 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 various environment variables, eg UBLIO_BLOCKSIZE and others. How do I

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 except

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, try setenv with no arguements

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 and FreeBSD 7.0-STABLE, fuse.ko

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't find them. I'm using standard

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 setenv

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. I'm using

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/README.FreeBSD refers to various environment variables, eg UBLIO_BLOCKSIZE

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

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

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

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

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 [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 6

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 variable list depends on your shell