On Thu, Jul 31, 2008 at 4: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?
>
> 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
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to