![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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 |
![]() |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|