- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What to do with my $HISTFILE setting under automou...
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
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
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
тАО04-10-2005 09:03 PM
тАО04-10-2005 09:03 PM
I recently raised a thread (http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851987) about issues logging in when the users home directory was automounted. I have since discovered as a result of some helpful replies that setting HISTFILE to somewhere other than $HOME such as /tmp/.sh_history solves this and I can log in. However, I would like to keep the shell history functionality and would rather it be kept in their $HOME. I could work out a way round this such as HISTFILE=/tmp/.sh_history$$ but can you suggest anything nicer?
Thanks,
Tony
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2005 09:13 PM
тАО04-10-2005 09:13 PM
Re: What to do with my $HISTFILE setting under automounter
For the HISTFILE to work correctly you need a clean connection to it at login time.
If your connection is stable and there are no connection issues or congestion, you probably can put the HISTFILE anywhere you want.
I think the real answer is to deal with whatever is trobling the NFS. Try and run NFS on a private network, or at least speed up the connection between client and server with Gigabit networking.
Good Luck,
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
тАО04-10-2005 09:23 PM
тАО04-10-2005 09:23 PM
Re: What to do with my $HISTFILE setting under automounter
Could you post your NFS client and server OS version?
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2005 09:24 PM
тАО04-10-2005 09:24 PM
Re: What to do with my $HISTFILE setting under automounter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2005 10:14 PM
тАО04-10-2005 10:14 PM
Re: What to do with my $HISTFILE setting under automounter
Document description: FAQ: Environment, Shell, and Profile configuration
Document id: KBRC00003700
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072883509
NOTE: There is a known problem in which the login process hangs when the sourcing the user's $HOME/.profile file causes the history file to be accessed immediately. This hanging problem usually occurs if the user's $HOME directory is NFS mounted and there is an NFS locking problem on the system. To workaround this problem, set-up the history file in the /tmp directory:
HISTFILE=/tmp/.${USER}.sh_history
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2005 10:23 PM
тАО04-10-2005 10:23 PM
Re: What to do with my $HISTFILE setting under automounter
What functionality do you lose? I've been running this way for years without any functionality loss that I'm aware of. I think you need to give it a try.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2005 11:49 PM
тАО04-10-2005 11:49 PM
Re: What to do with my $HISTFILE setting under automounter
Its not so much a loss of functionality but the way in which its implemented. I'd rather not have dir where everyone can see eachothers shell histories. This can of course be rectified with edits to the .profile and ownership changes and it looks as if this may be the case if this is a known error...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2005 11:52 PM
тАО04-10-2005 11:52 PM
SolutionBill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2005 12:09 AM
тАО04-11-2005 12:09 AM
Re: What to do with my $HISTFILE setting under automounter
If it's privacy that concerns you, why don't you just change the permissions on the file. In /etc/profile for example:
umask 066
HISTFILE=/tmp/.sh_history.$(whoami)
export HISTFILE
umask 002
This will create the history file with rw permissions for just the owner.
Pete
Pete