Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th October 2010, 03:22 AM
BobbyBD Offline
Registered User
 
Join Date: Aug 2010
Posts: 8
windows_xp_2003firefox
delete input history

What command is used to delete input command history in terminal ?
I am afraid my friend will trace what been input
Thank you
Reply With Quote
  #2  
Old 18th October 2010, 03:23 AM
mndar's Avatar
mndar Offline
Registered User
 
Join Date: Feb 2005
Posts: 1,101
linuxopera
Re: delete input history

It's
history -c

The commands you type are stored in
~/.bash_history
Reply With Quote
  #3  
Old 18th October 2010, 03:29 AM
BobbyBD Offline
Registered User
 
Join Date: Aug 2010
Posts: 8
windows_xp_2003firefox
Re: delete input history

Thank you mndar
Reply With Quote
  #4  
Old 18th October 2010, 09:32 PM
assen Offline
Registered User
 
Join Date: Oct 2008
Posts: 492
linuxfedorafirefox
Re: delete input history

Hi,

A 'hacky' question :-) Actually, some of the most interesting tasks for a real hacker relate to shell history - how to disable it, or even better - how to make the regular user think he has disabled it and still have it written into some other place :-) "man bash" is priceless :-)

WWell,
Reply With Quote
  #5  
Old 18th October 2010, 10:24 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxfedorafirefox
Re: delete input history

Why would another user ever have access to your shell history. If they can read /home/you/.bash_history then you have bigger problems than shell history.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #6  
Old 19th October 2010, 10:11 PM
assen Offline
Registered User
 
Join Date: Oct 2008
Posts: 492
linuxfedorafirefox
Re: delete input history

Hi,

Not just "any" user, but, say, your (friendly) sysadmin. Have you never been assigned (purchased etc.) a shell account? There's where it gets important.

WWell,
Reply With Quote
  #7  
Old 19th October 2010, 11:28 PM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,950
linuxfedorafirefox
Re: delete input history

Quote:
Originally Posted by assen View Post
Hi,

Not just "any" user, but, say, your (friendly) sysadmin. Have you never been assigned (purchased etc.) a shell account? There's where it gets important.

WWell,
If a sysadmin wants to track what you do, there's nothing you can do to prevent it. And on a shared account it's not difficult for another user to record it for themselves.
Code:
/etc/profile:
function log2syslog
{
   declare command
   command=$(fc -ln -0)
   logger -p local1.notice -t bash -i — $USER : $command
}
trap log2syslog DEBUG
Just a quick and dirty way to do it. Not to mention using logger.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz

Last edited by pete_1967; 19th October 2010 at 11:58 PM.
Reply With Quote
  #8  
Old 20th October 2010, 12:00 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: delete input history

A sysadmin, can easily put a keystroke recorder in server daemons (sshd).

Been done several times, in several different ways. The most difficult
to identify is when the log is sent to another system as you enter
commands.

And that goes for the DoD smart card as well...
Reply With Quote
  #9  
Old 20th October 2010, 12:17 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxfedorafirefox
Re: delete input history

Quote:
Originally Posted by jpollard View Post
A sysadmin, can easily put a keystroke recorder in server daemons (sshd).

Been done several times, in several different ways. The most difficult
to identify is when the log is sent to another system as you enter
commands.

And that goes for the DoD smart card as well...
What does that mean - about DoD smart cards ?

I suspect you are not aware of how that protocol works. The card isn't "read" despite the terminology. The ICC device(card) has processing capability and it doesn't divulge it's content any more than you bank does when is returns a public half key.

The design of the interface is meant so that someone can listen to every bit of the interface traffic and still it won't allow an exploit.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #10  
Old 20th October 2010, 01:01 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: delete input history

Quote:
Originally Posted by stevea View Post
What does that mean - about DoD smart cards ?

I suspect you are not aware of how that protocol works. The card isn't "read" despite the terminology. The ICC device(card) has processing capability and it doesn't divulge it's content any more than you bank does when is returns a public half key.

The design of the interface is meant so that someone can listen to every bit of the interface traffic and still it won't allow an exploit.
Actually, your pin is read via login/initialization of the card. And
that can be sniffed (did it myself during evaluation). After that
the entire session can be sniffed.

And that gives access to the certs generated/signed. The easiest
way is to put pcscd into debug mode, or replace it with one that
has debug turned on.

In my opinion, none of the existing smart cards are any better
than a password. The ONE advantage is that the card can't be
sniffed if it isn't plugged in...

A few one-time password cards are not too bad, these have external
pin pads such that the pin cannot be seen by the computer
(until you use them in front of a webcam) - CryptoCard is one,
another is SecurID (the more expensive ones).

Of course, from the military point of view, both are flawed - they
are made in China (you have to dismantle the CryptoCard to see
the "made in china" tag on the circuit board, The SecurID is
marked on the outside).

The DoD smart cards, last I heard, were made in VietNam,
shipped to Belgium for embedding in plastic, then shipped to
the US for sales.

It has been a couple of years since I had first hand information
on these though.
Reply With Quote
  #11  
Old 20th October 2010, 10:00 AM
Min Offline
Registered User
 
Join Date: Jun 2009
Location: Melbourne
Posts: 246
linuxfirefox
Re: delete input history

Use a space before the command won't make the command stored in history
yum install something
instead of
yum install something
__________________
Macbook aluminum 5,1
Snow Leopard, Constantine, Seven
Reply With Quote
Reply

Tags
delete, history, input

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
History how to gibz85 Using Fedora 0 25th August 2008 02:11 PM
fc7 hangs on Input: PS/2 Generic Mouse as /class/input/input2 spectre_man Installation and Live Media 2 2nd January 2008 01:45 AM
drivers/usb/input/hid-core, o: input irq status -32 received lkoreality Installation and Live Media 0 11th March 2007 01:55 PM


Current GMT-time: 13:40 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat