Frank Murphy wrote:
> I would like to prevent .bash_history being
> created for root.
> 
> And when "sudo" invoked by user.
> 
> Have tried:
> export HISTCONTROL=ignoreboth
> 
> but nothing seems to be added to .bashrc
> 
> this has come abote as I seem to have
> /tmp/.bash_history
> which may not be good :(
> 
You can add "[ -f $HISTFILE ] && rm $HISTFILE" to your .bashrc. Or just the rm 
command if you're more trusting than I...

-- 
Bill Davidsen <david...@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to