[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use .emacs.d in savehist.el
From: |
Chong Yidong |
Subject: |
Re: Use .emacs.d in savehist.el |
Date: |
Mon, 31 Oct 2005 22:43:41 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> If normal libraries follow init-file-user, you could have a situation
> where a user tries to write customization files into the home
> directory of another user. This doesn't make much sense, but I don't
> understand when it makes sense to set init-file-user in the first
> place.
>
> If the customized values that Emacs read _came from_ another user's
> init file, the only place to store them back is into that user's init
> file.
>
> Ordinarily you won't be able to write that file. Instead you will get
> a clear error message saying so. That seems correct to me.
>
> Meanwhile, in at least one case you WILL be able to write that file.
> Namely, when you are root and you told Emacs to use your own personal
> init file. (In particular, this is what happens when you run emacs
> under su.)
When you are root, creating a file or directory in another user's home
directory is problematic. The file will be owned by root, and the
user won't be able to write to it.
I looked into the possibility of making Miles' "find customization
file" function do a chown and chgrp on the customization file, so that
this problem won't arise. But Emacs doesn't have any built-in chown
or chgrp. Dired can do it, but it's by calling an external program.
- Re: Use .emacs.d in savehist.el, (continued)
- Re: Use .emacs.d in savehist.el, Chong Yidong, 2005/10/28
- Re: Use .emacs.d in savehist.el, Richard M. Stallman, 2005/10/29
- Re: Use .emacs.d in savehist.el, Chong Yidong, 2005/10/30
- Re: Use .emacs.d in savehist.el, Miles Bader, 2005/10/30
- Re: Use .emacs.d in savehist.el, Chong Yidong, 2005/10/30
- Re: Use .emacs.d in savehist.el, Richard M. Stallman, 2005/10/30
- Re: Use .emacs.d in savehist.el, Chong Yidong, 2005/10/30
- Re: Use .emacs.d in savehist.el, Richard M. Stallman, 2005/10/31
- Re: Use .emacs.d in savehist.el,
Chong Yidong <=
- Re: Use .emacs.d in savehist.el, Kim F. Storm, 2005/10/27
- Re: Use .emacs.d in savehist.el, Chong Yidong, 2005/10/30
Re: Use .emacs.d in savehist.el, Hrvoje Niksic, 2005/10/25
Re: Use .emacs.d in savehist.el, Richard M. Stallman, 2005/10/25