The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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-25-2008 02:31 AM
Password zunacai Shell Programming and Scripting 1 08-24-2006 02:51 PM
sc password ppass SUN Solaris 2 10-10-2005 12:59 AM
Change password by pushing encrypted password to systems benq70 UNIX for Dummies Questions & Answers 1 09-02-2005 09:08 AM
password pydyer Security 3 01-08-2002 11:39 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-05-2008
MastaFue MastaFue is offline
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
  #2 (permalink)  
Old 05-05-2008
fabtagon fabtagon is offline
Registered User
  
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 189
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
  #3 (permalink)  
Old 05-05-2008
frank_rizzo frank_rizzo is offline Forum Advisor  
Resident BOFH
  
 

Join Date: Dec 2007
Posts: 427
if you don't type or copy/paste your password into the command line it will never show up in the history.
  #4 (permalink)  
Old 05-07-2008
MastaFue MastaFue is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 16
alright thanks for the answers. it might have been a fault on my side.
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0