- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cd to home dir. fails
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
03-28-2002 12:45 PM
03-28-2002 12:45 PM
cd to home dir. fails
On the 11.0 box when i do a cd ~username it does not take me to the home directory. It says sh: ~username : not found. But if i type cd /home/username it gets there. The other box is able to do it. Curious why??
Thanks
Sai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 12:49 PM
03-28-2002 12:49 PM
Re: cd to home dir. fails
Did you check the $HOME value by running 'env' ? What is the home directory setup in /etc/passwd ? what will happen if you do just 'cd' ?
It is not required to post the same question in different categories.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 12:51 PM
03-28-2002 12:51 PM
Re: cd to home dir. fails
-Rusty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 12:55 PM
03-28-2002 12:55 PM
Re: cd to home dir. fails
-Rusty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 12:56 PM
03-28-2002 12:56 PM
Re: cd to home dir. fails
cd as root puts me in / dir. But it does not work for the users' home directories when i am root.I am not able to type cd ~username as root. But as the user i am able to.
Thanks
Sai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 01:19 PM
03-28-2002 01:19 PM
Re: cd to home dir. fails
Did you check the entry in /etc/passwd ? Is that directory exists ?
Is this happens to only root ?
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 01:25 PM
03-28-2002 01:25 PM
Re: cd to home dir. fails
Thanks
Sai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 01:29 PM
03-28-2002 01:29 PM
Re: cd to home dir. fails
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2002 02:02 PM
03-28-2002 02:02 PM
Re: cd to home dir. fails
Check the 'env' varibales and alias set for root. Check the .profile file too for any mismatches.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 01:33 AM
04-05-2002 01:33 AM
Re: cd to home dir. fails
- For some reason the "~" character is not recognized (for *root*), This could be a stty(1) setting. "stty -a" (as root) should reveal this.
- The shell is not a POSIX shell, but a (very old) Bourne shell. On the other hand, I would expect the Bourne shell to give "~username: bad directory", not "sh: ~username: not found.".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 01:53 AM
04-05-2002 01:53 AM
Re: cd to home dir. fails
You should add the latest shell patches
The ksh patch which is what I guess you are using includes
4. Using "~user" to refer to user's home directory fails for users in NSS, NIS+ or LDAP.
Patch Name: PHCO_22712
Patch Description: s700_800 11.00 ksh(1) cumulative patch
Creation Date: 00/11/12
Post Date: 00/11/15
Steve Steel