- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- executable visible wherever for any user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2006 11:59 PM
тАО06-14-2006 11:59 PM
I installed java1.4 into my HP-UX B.11.11 but when I tried to execute java -version from / I can't, so I must go to /opt/java1.4/jre/bin directory and then execute it.
I need java visible from any directory for any user. I tried to add java path and prefer do not modify .profile for each user.
Is there any easy way to do it?
BTW, how can I do an script can be execute directly instead "./myscript"?
If I can fix both issues will be great.
Thanks in advance for your help.
Regards,
Carles
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 12:02 AM
тАО06-15-2006 12:02 AM
Re: executable visible wherever for any user
This is a permissions problem.
Make sure all users chmod o+rx the directiroes from root down to java
Depending on current permissions you may need also chood g+rx
If you an error message, I could be certain of my advice.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 12:10 AM
тАО06-15-2006 12:10 AM
SolutionYou can add '/opt/java1.4/jre/bin' to '/etc/PATH'. This is sourced by '/etc/profile' during its execution during login. Hence, the one change will propogate to all users with one change.
As far as being able to do:
# myscript
[ instead of ]
# ./myscript
...This is governed by the presence of a dot (".") in the PATH variable. That's fine to include, as the *last* path, for *non-root* users but should *never* be added to root's path! To do so is a security hole.
Learn to type "./myscript" when you are root and sleep better.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 12:10 AM
тАО06-15-2006 12:10 AM
Re: executable visible wherever for any user
cd /usr/bin
ln -s /opt/java1.4/jre/bin/java java
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 12:10 AM
тАО06-15-2006 12:10 AM
Re: executable visible wherever for any user
you can add the java path to the PATH variable in the /etc/profile.
In the user' .profile generally the PATH variable call the PATH in the /etc/profile.
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 12:18 AM
тАО06-15-2006 12:18 AM
Re: executable visible wherever for any user
#ll -d /opt/java1.4 drwxr-xr-x 9 root root 1024 May 12 2005 /opt/java1.4
#ll -d /opt/java1.4/bin
dr-xr-xr-x 5 bin bin 1024 May 12 2005 /opt/java1.4/bin
#ll -d /opt/java1.4/jre
dr-xr-xr-x 7 bin bin 1024
#ll -d /opt/java1.4/bin/java
-r-xr-xr-x 1 bin bin 138936 Jul 13 2005 /opt/java1.4/bin/java
#ll -d /opt/java1.4/bin/java
# /opt/java1.4/bin/java -version
java version "1.4.2.09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.09-050713-03:34)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.09-050713-05:46-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)
rgs,
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 12:21 AM
тАО06-15-2006 12:21 AM
Re: executable visible wherever for any user
Thanks to all.
Regards,
Carles