The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh without password gio123bg HP-UX 2 03-24-2008 11:31 PM
Password zunacai Shell Programming and Scripting 1 08-24-2006 11:51 AM
sc password ppass SUN Solaris 2 10-09-2005 09:59 PM
Change password by pushing encrypted password to systems benq70 UNIX for Dummies Questions & Answers 1 09-02-2005 06:08 AM
password pydyer Security 3 01-08-2002 08:39 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-05-2008
Registered User
 

Join Date: Apr 2008
Posts: 16
password

Hello!

I am using a macbook pro with leopard on it. Once I used the Terminal to type in a sudo command and it promted me to type in my password so I did. A few weeks later I found an invisible file in my "home" folder called .bash_history. It obviously shows a history of what commands I used in the Terminal. I don't know why the system creates this file and after what criteria it displays the commands (i.e. I couldn't find all the commands I used recently). But what troubles a little bit is that I found my password in that file. So my question is what part of the system creates that file and how can I turn off that process or modify it so it won't display my password. I am new at Unix so I hope this thread is not too stupid or something^^

greetings
Reply With Quote
Forum Sponsor
  #2  
Old 05-05-2008
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 183
If properly used your password will never show up in that file. Only command lines (which should never include any passwords) are stored there. There are not all commands because different bash instances overwrite each other when you use more than one at a time. You can disable that file by setting
Code:
export HISTFILESIZE=0
in ~/.bashrc
Reply With Quote
  #3  
Old 05-05-2008
Resident BOFH
 

Join Date: Dec 2007
Posts: 262
if you don't type or copy/paste your password into the command line it will never show up in the history.
Reply With Quote
  #4  
Old 05-07-2008
Registered User
 

Join Date: Apr 2008
Posts: 16
alright thanks for the answers. it might have been a fault on my side.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0