Operating System - HP-UX
1833737 Members
2400 Online
110063 Solutions
New Discussion

Copy all enviornment settings to another user

 
SOLVED
Go to solution
hangyu
Regular Advisor

Copy all enviornment settings to another user

If I want to copy all enviornment settings ( eg . PATH , set ) of root user to another user , what can I do ? thx
3 REPLIES 3
Dennis Handly
Acclaimed Contributor
Solution

Re: Copy all enviornment settings to another user

Something similar was just discussed in the following:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1079346

Does it help?
Yogeeraj_1
Honored Contributor

Re: Copy all enviornment settings to another user

hi,

all you have to do is copy the .profile (/.profile) for the root user to the "another user"

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Ankit Grover
Frequent Advisor

Re: Copy all enviornment settings to another user

Copy all the environment settings of root into a file
#env>settings.txt

Open the file and see if all is relevant for u. Append all the environment variables by export and run it.