Blog
AIXchange

Advertisement

« With Virtualization, Nothing Compares to Power | Main | Migrate When the Time is Right »

October 13, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83545a5d153ef0120a6372f43970c

Listed below are links to weblogs that reference Changing the padmin .profile:

Comments

It did!!... it made me very happy!!!... since I spent a lot of time deploying solutions using many VIOS for many IBM customers...
Thanks a lot!

Maybe I am a naughty admin but I enabled root login and augmented the root .profile with the contents of the padmin .profile and my preferred customizations (PS1 and set -o vi). I can now ssh to root run ioscli commands as root and never login as padmin. I hope the VIO Police don't get me.


I also like to add an alias called 'aix' for the lengthy command oem_setup_env - I run the command 'aix' and it's much faster to type.

I add this line to /home/padmin/.profile
alias aix="oem_setup_env"

I suppose you could add it in .kshrc instead.

If it is just 'set -o vi', then another option is to add EDITOR=vi to /etc/environment.

Nice!
I put oem_setup_env in the profile also:

.profile:
export ENV=/home/padmin/.kshrc
oem_setup_env

and in .kshrc:
PS1="VIO3 # "
set -o vi
export PATH=$PATH:/usr/ios/cli
alias psef='ps -ef | grep -i $1'

alias backup="ioscli backup"
alias restore="ioscli restore"
alias chbdsp="ioscli chbdsp"

Now after logging in as padmin, I'm placed into oem_setup_env and can run everything as root.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.