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?



Nick Guenther wrote:
> On Wed, Jul 30, 2008 at 2:27 PM, macintoshzoom
> <[EMAIL PROTECTED]> wrote:
>> I forgot CC to the mailist, sorry to all!
>> I have just added the "reply all" button to the toolbar of my thunderbird.
>>
>> As per your advise, here is what I am going to do, at least for this
>> week and to be able to update my new -current system.
>> I have already rebuilt the kernel, running OK, I have set up already
>> some tweakings as per the page current.html, and now I have to update
>> all my installed packages and ports.
>>
>> Later I will try to build xenocara and setup my radeonhd ATI videocard,
>> as it seem that this new xenocara supports it...
>>
>>
>> Well my fetch-via-wget.sh brand new script is ready as per your tip:
>> -----
>> #!/bin/sh
>> dsocks-torify.sh wget -O - $3
>> -----
>>
>> Placed in my Local_scripts folder.
>> Given executable permission for root only
>>
>> Now what?:
>>
>> edit /root/.profile and add
>> FETCH_CMD="path-to-the-script"
>> (for my next reboot-or how to relod this .profile without rebooting?)
>>
>> As I am not yet sure what .profile is the one that works, I am currently
>> creating the same .profile file in /, in /root and in /home/username,
>> just in case.(?)
> 
> More detail:
> When you login ~/.profile gets "sourced" (equivalent to saying "$.
> ~/.profile" on the command line). ~ is whatever your login dir is, so
> which .profile you edit to do this depends on what user you're running
> as. Usually I put my environment variables in my "user" account, and
> then use sudo (so that I'm somewhat protected against slippy fingers).
> 
> There is no /.profile, that's never used by anything. Every .profile
> file goes with a login dir. All the login dirs are under /home, except
> for /root.
> 
> Good luck.
> -Nick
> 

_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to