bash history for root user...

gurus,

where is the bash history file for the root user kept? How do I clear it (it's got the mysqladmin password in clear text in there)

TIA

ibook g4 Mac OS X (10.4)

Posted on Dec 11, 2005 5:29 AM

Reply
5 replies

Dec 11, 2005 7:35 AM in response to Michael Conniff

I assumed that the OP knew that his problem (passwords) were in root's history.

Unless you have a habit of running sudo with -H or if you have root logins enabled, root shares your settings (since sudo without -H keeps the original user's HOME) and runs .bashrc from the original user's HOME, saves history in there etc.

Quick test with:
host user $ sudo bash
Password:
host user # echo hello_world
hello_world
host user # exit
host user $ grep hello_world .bash_history
echo hello_world
host user $

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

bash history for root user...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.