- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with the Shell
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
Forums
Discussions
Discussions
Discussions
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
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
07-16-2003 09:45 AM
07-16-2003 09:45 AM
Problem with the Shell
I am having problem executing commands from my dollar prompt.
I always have to do a sh .profile ( on other systems i can do . .profile )
to execute java i have to do ./java Instead of doing java
Can one you help me solve this. Do i need to change my .profile or .kshrc ??
thanx,
Nag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 09:52 AM
07-16-2003 09:52 AM
Re: Problem with the Shell
The need to enter '.java' instead of just 'java' reflects that dot ('.') isn't in your PATH. This is intentional, desired, and recommended! It is stronger security than placing '.' (the current directory) in your PATH.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 09:52 AM
07-16-2003 09:52 AM
Re: Problem with the Shell
PATH=${PATH}:./
export PATH
However, it is normally considered a serious security issue to include ./ in root's PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 10:18 AM
07-16-2003 10:18 AM
Re: Problem with the Shell
1. If i open file say vi test.txt
2. Close it
3. then do r vi
I exepect that vi test.txt to be executed, which happens in all the other systems..
I get this error
"sh: fc: Cannot access or open the history file."
I created and set the appropriate permissions to .sh_history file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 10:26 AM
07-16-2003 10:26 AM
Re: Problem with the Shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 10:54 AM
07-16-2003 10:54 AM
Re: Problem with the Shell
after i changed to to sh shell in the /etc/passwd file. It started working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 11:02 AM
07-16-2003 11:02 AM
Re: Problem with the Shell
One final comment based on your last post. *NEVER* change the default shell for root in '/etc/passwd'. It should always (*only*) be:
/sbin/sh
...which is the Posix shell with static libraries. Failure to specify this shell may lead to an unbootable system. For normal users of the Posix shell, use the dynamically linked version found in '/usr/bin'. Resource consumption is thereby minimized.
Regards!
...JRF...