ftp alternative for pkg_add?
Nick Guenther
kousue at gmail.com
Thu Jul 31 08:09:46 PDT 2008
On Thu, Jul 31, 2008 at 4:41 AM, macintoshzoom
<macintoshzoom at lavabit.com> wrote:
>
> So pkg_add uses /root/.profile, as it runs as root if I use su from the
> console.
> Right?
>
> If I use instead sudo (wich I never use anyway), it's
> /home/username/.profile what matters?
> Right?
>
Yes. You've got it.
Just a nit: pkg_add uses PKG_PATH which is an environment variable.
.profile is just a convenient place for you to set that environment
variable on every log in. pkg_add doesn't know about .profile.
You should really get into the habit of using sudo! root is a single
point of failure, you should touch it as little as possible, only use
it to save your system when things break.
-Nick
More information about the Openbsd-newbies
mailing list