On Fri, Jun 13, 2014 at 01:28:22PM +0200, Bernhard Voelker wrote:
On 06/13/2014 12:25 PM, Josef Wolf wrote:
I don't want bash-history for root, even if some variables happen to pass through /bin/su or sudo.
Just an - well, crude - idea:
$ rm -f /root/.bash_history
$ mknod --mode=666 /root/.bash_history c 1 3
$ ls -l /dev/null /root/.bash_history crw-rw-rw- 1 root root 1, 3 Jun 13 11:55 /dev/null crw-rw-rw- 1 root root 1, 3 Jun 13 13:22 /root/.bash_history
man bash ... HISTFILE The name of the file in which command history is saved (see HIS- TORY below). The default value is ~/.bash_history. If unset, the command history is not saved when an interactive shell exits. Doesn't this provide the required feature? Nevertheless a bug has to be opened and the ID reported back to this list. Ensure to assign the bug directly to the bug owener of aaa_base (osc maintainer -e aaa_base), please. Cheers, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany