![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
if you don't type or copy/paste your password into the command line it will never show up in the history.
|
|
#4
|
|||
|
|||
|
alright thanks for the answers. it might have been a fault on my side.
|
|||
| Google The UNIX and Linux Forums |