On Thu, Jul 31, 2008 at 1:41 AM, macintoshzoom <[EMAIL PROTECTED]> wrote: > So pkg_add uses /root/.profile, as it runs as root if I use su from the > console. > Right?
erm, kinda. When you log in .profile gets run and sets the PKG_PATH environment variable. pkg_add 'uses' the environment variable. > If I use instead sudo (wich I never use anyway), it's > /home/username/.profile what matters? > Right? though you can get the full environment set by using -i examples: my $PATH [EMAIL PROTECTED]:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/games still my $PATH even though I've sudo'd [EMAIL PROTECTED]:~$ sudo echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/games root's $PATH [EMAIL PROTECTED]:~$ sudo -i -- -c 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [EMAIL PROTECTED]:~$ -Bryan _______________________________________________ Openbsd-newbies mailing list [email protected] http://mailman.theapt.org/listinfo/openbsd-newbies
