- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stop logging history for telnet session
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
01-04-2005 05:41 PM
01-04-2005 05:41 PM
stop logging history for telnet session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2005 06:40 PM
01-04-2005 06:40 PM
Re: stop logging history for telnet session
straight forward way to do this, but one way
that comes to my mind immediately is to have
a check in .profile if you are logging in from some
other system and if yes, unset HISTFILE parameter.
To check if the login is from some other system,
use "who -R am i".
The script should look something like:
who -R am i | grep -q `hostname`
if [ $? -eq 1 ]
then
unset HISTFILE
fi
I have not run the above script and obviously
it's a little over simplified, but I think you get
the basic logic used here.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2005 07:02 PM
01-04-2005 07:02 PM
Re: stop logging history for telnet session
"other users connected with same username and at the same time should be logged"
so you want to do stuff others cannot retrace? ;-)
- unsetting HISTFILE does not work, it defaults to $HOME/.sh_history
- "HISTFILE=/dev/null" should work, but this instruction will be logged
- switching to another shell is an option if history is not configured for it. Generally companies use one shell as a standard, other shells are often not configured.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2005 07:11 PM
01-04-2005 07:11 PM
Re: stop logging history for telnet session
export HISTSIZE=0
in the $HOME/.profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2005 07:11 PM
01-04-2005 07:11 PM
Re: stop logging history for telnet session
HISTFILE does not work, tho' the manpage for ksh
gave me an impression that it would. But a nicer
solution would be to set the HISTFILE to a different
file for remote telnet users and leave the default
.sh_history for others.
If you want to clean up your track, make sure
to remove the change in HISTFILE entry in
.sh_history ;-)
- Biswajit