Help on .profile for AIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Help on .profile for AIX
# 1  
Old 06-13-2010
Help on .profile for AIX

I am application admin. I used many ( more than 12 user accounts for administering diff application). My platform is AIX. My question is:

I have a big list of aliases ( more than 50) I want to know is there any way that I can put all these aliases in one text and add the path into my .profile so that i can access all of them from any profile with out adding the 50 aliases in every ".profile".

Can you please suggest any solution so that it reduces me taking time to add every alias in every ".profile"
# 2  
Old 06-14-2010
Place 1 file (for example myenv) which contains those 50 aliases where it can be reached from every of your 12 accounts and add the following line to every of those 12 .profiles
Code:
. ./myenv

This is one time work on 12 .profiles for one line but in future you only have to edit that one myenv environment file with your aliases etc.
This User Gave Thanks to zaxxon For This Post:
# 3  
Old 06-14-2010
Thanks Zaxxon,
I tried that i kept myenv file on user1's home dir and added . ./myenv in his .profile. it worked gud and well

can you tell me what syntax i need to follow to add it in user2's .profile
i tried . ./myenv ----- not working

/home/user1 ./myenv ------- not working


Could you suggest the syntax so that i can add them on all others users .profile


the permissions for myenv file are set to 775.
# 4  
Old 06-14-2010
Hi.

Try:

Code:
. ~user1/myenv

(make sure also that the user1 home directory is accessible to the other users)
This User Gave Thanks to Scott For This Post:
# 5  
Old 06-14-2010
For example may be this give you an idea Smilie
Goal is update the users .profile for user env
Code:
mypasswd=/etc/passwd
myaliases=myenv
for user in `sed -e  '/:/!d' -e 's/://'  $mypasswd`; do cat $myaliases >> /home/$user/.profile; done

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

AIX Administrator - User Profile Management

Good afternoon all, Was un-sure on where to post this so I thought I would use this topic... I was wondering what best practice people use for the deletion of user profiles on AIX systems? At the moment, I currently don't delete any user profiles, they are just disabled as they... (1 Reply)
Discussion started by: SteveCPayne
1 Replies

2. AIX

Bypass Read Line in profile through AIX command

Hi All, I have a complicated requirement where in I have a "root" user and a user named "xeadmin" I want to take sudo of "xeadmin" by command sudo su - xeadmin. Later i need to hit 2 enter keys as there are 2 read line commands inserted in profile of "xeadmin" and I reach command prompt, i need... (1 Reply)
Discussion started by: hiteshsathawane
1 Replies

3. Shell Programming and Scripting

Need help in setting .profile , .cshrc , .exerc ..... in HP-UX , Solaris , AIX-UX

I need help in settings to Hp-UX , Solaris , AIX-UX .. I worked on Linux previously ... now i am working on Hp-UX , Solaris , AIX-UX .. up/down arrow , to see history of previous command (basically to modify ) and few keyboard keys are different ... so i need to set .profile , .cshrc , ... to... (1 Reply)
Discussion started by: girija
1 Replies

4. AIX

aix 6.1 root .profile not found

hello all i just installed my 1rst 6.1 machine and it's working fine but i can't find the root .profile ????? can any one help BEst Regards (1 Reply)
Discussion started by: islam.said
1 Replies

5. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

6. UNIX for Dummies Questions & Answers

difference between /etc/profile and .profile?

What is the difference between /etc/profile and .profile? (5 Replies)
Discussion started by: gehlnar
5 Replies

7. UNIX for Dummies Questions & Answers

Where can I read about the difference between "..profile" and ".profile"

Hi I know from reading O Riley's Classic Shell Scripting' that the .profile file is " the shells configuration file" but I am unable to find a reference to what "..profile" means. I have searched on the net, Sams Teach Yourself Unix, Unix Visual Quickstart Guide and Linux in a Nutshell. I have... (2 Replies)
Discussion started by: zorrokan
2 Replies

8. SCO

Difference between .profile and .~/.profile

what is the difference between these two lines, if we use it in korn shell script: .profile .~/.profile (3 Replies)
Discussion started by: maneesh mehta
3 Replies

9. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

10. UNIX for Dummies Questions & Answers

why i have local.profile, local.cshrc,local.login instead of .profile, .login ?

Hello again ! Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ? my all files in pwd shoes local. before any file. is anybody can tell me about that ? Thanks Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies
Login or Register to Ask a Question