Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: can't write zsh_history
- X-seq: zsh-users 10851
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: can't write zsh_history
- Date: Thu, 12 Oct 2006 19:02:10 +0100
- In-reply-to: <76C42610-83A0-4174-ADBF-5CD4D75891D5@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <76C42610-83A0-4174-ADBF-5CD4D75891D5@xxxxxxxxx>
Michael Hernandez wrote:
> The problem, which is really more of an annoyance than a problem, is
> that if I su to run some command and I don't cd first,
> my .zsh_history file becomes owned by root. After I exit from # and
> run a command as my regular user, zsh tells me that it can't write
> the history file, which of course it can't because it's now owned by
> root. Is there something I can do to alter the way zsh writes to my
> history file when I am root?
if (( ! EUID )); then
HISTFILE=~/.history_root
else
HISTFILE=~/.history
fi
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author