AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  /etc/profile

    Posted Mon September 04, 2006 06:22 PM

    Originally posted by: SystemAdmin



    I have AIX 5.3 installed, and I am installing shutdown software called PowerAlert(TrippLite) which will automate the shutdown of the server if power is lost. The instructions say to add the following lines to root's .profile file:

    #Startup of PowerAlert software
    echo PATH=/opt/TrippLite/PowerAlert:/home/usr/java14/jre/bin:$PATH
    export TRIPPLITE_PA_HOME=/opt/TrippLite/PowerAlert
    echo "Done setting up environment variables"

    These lines will allow the root user to start the PowerAlert interface.
    However, there is no .profile file for root. Should I create one? or should I put these lines in the /etc/profile file? I am a bit confused. Thanks for any help.
    Paul
    #AIX-Forum


  • 2.  Re: /etc/profile

    Posted Mon September 04, 2006 11:35 PM

    Originally posted by: SystemAdmin


    Just create one, don't put it in /etc/profile.

    Matt
    #AIX-Forum


  • 3.  Re: /etc/profile

    Posted Tue September 05, 2006 07:22 AM

    Originally posted by: SystemAdmin


    Just to expand on this answer, the reason to put it in root's . profile is that /etc/profile is run for every process that starts a login shell most of whom aren't root and presumeably don't need or can't use the function in question.

    Regards,
    Jim Lane
    #AIX-Forum


  • 4.  Re: /etc/profile

    Posted Tue September 05, 2006 08:35 AM

    Originally posted by: SystemAdmin


    Where do I put the .profile for root and how do I get AIX to read .profile when root logs in?
    #AIX-Forum


  • 5.  Re: /etc/profile

    Posted Tue September 05, 2006 08:36 AM

    Originally posted by: SystemAdmin


    Where do I put the .profile for root and how do I get AIX to read .profile when root logs in?
    #AIX-Forum


  • 6.  Re: /etc/profile

    Posted Tue September 05, 2006 09:18 AM

    Originally posted by: nh4aix


    Put it in /

    name it .profile

    give it read and write permissions for root (chmod 600 /.profile)

    and you should be good to go...

    TIP: you may want to copy /etc/security/.profile to /.profile as a base /.profile
    #AIX-Forum


  • 7.  Re: /etc/profile

    Posted Tue September 05, 2006 12:51 PM

    Originally posted by: SystemAdmin


    thank you very much for the info!
    #AIX-Forum