Files created with emacs are owned by system
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Files created with emacs are owned by system         


Author: iainb.forms
Date: Jul 31, 2008 11:44

Hi,

I'm running Emacs on OSX 10.4 in Terminal. Every time I create a new
file using C-x C-f the owner is "system" and not my user, so the files
become read-only! I'm not running with sudo or su, so I'm not quite
sure why this is happening.

I'd like emacs to automatically save the files under my user account.
Any help with this is much appreciated.

Thanks
Iain
31 Comments
Re: Files created with emacs are owned by system         


Author: Peter Dyballa
Date: Jul 31, 2008 14:34

Am 31.07.2008 um 20:44 schrieb iainb.forms@googlemail.com:
> I'm running Emacs on OSX 10.4 in Terminal. Every time I create a new
> file using C-x C-f the owner is "system" and not my user, so the files
> become read-only!

Could you tell us the value of the environment variable GROUP? And
what is the command groups returning?

--
Greetings

Pete

Every instructor assumes that you have nothing else to do except
study for that instructor's course.
– Fourth Law of Applied Terror
no comments
Re: Files created with emacs are owned by system         


Author: Thierry Volpiatto
Date: Jul 31, 2008 14:41

iainb.forms@googlemail.com writes:
> Hi,
>
> I'm running Emacs on OSX 10.4 in Terminal. Every time I create a new
> file using C-x C-f the owner is "system" and not my user, so the files
> become read-only! I'm not running with sudo or su, so I'm not quite
> sure why this is happening.
>
> I'd like emacs to automatically save the files under my user account.
> Any help with this is much appreciated.
>
> Thanks
> Iain
>
Hi,
are you sure you have a user account on your system ?
What say the command? :

whoami
Show full article (0.59Kb)
no comments
Re: Files created with emacs are owned by system         


Author: Nikolaj Schumacher
Date: Aug 1, 2008 01:23

iainb.forms@googlemail.com wrote:
> I'm running Emacs on OSX 10.4 in Terminal. Every time I create a new
> file using C-x C-f the owner is "system" and not my user, so the files
> become read-only! I'm not running with sudo or su, so I'm not quite
> sure why this is happening.

I'm on 10.5, and it doesn't have a user "system". Does the account have
the same user ID as "root"?

regards,
Nikolaj Schumacher
no comments
Re: Files created with emacs are owned by system         


Author: iainb.forms
Date: Aug 1, 2008 04:32

whoami: iainb
groups: iainb appserveradm appserverusr admin
echo $GROUP: returned nothing - if there are ways to get env vars set
within emacs, I don't know how to do that.

the user "system" doesn't appear in my Netinfo database, but it is
quite common to find it owning the file if using the Get Info command
from the Finder (which gives more meta info, so I tend to use that
instead of unix commands for ownership). It appears to be an alias
used by Apple

ls -al:
-rw-
--r-- 1 root iainb 8 Aug 1 12:27 Dummyfile.hs

Thanks for taking the time to look into this.
no comments
Re: Files created with emacs are owned by system         


Author: iainb.forms
Date: Aug 1, 2008 04:38

Btw, just saw this recent post to the group that has a similar problem
with creating read-only files:
http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/91010d5de48d8...#

I'm not sure what to do about the "set-defa8ult-file-modes" advice -
I'm running Haskell mode, and it's the only stuff in my init file.

umask: 0022

Regards,
Iain
no comments
Re: Files created with emacs are owned by system         


Author: Peter Dyballa
Date: Aug 1, 2008 04:52

Am 01.08.2008 um 13:32 schrieb iainb.forms:
> -rw-r--r-- 1 root iainb 8 Aug 1 12:27 Dummyfile.hs

This file is owned by root – not by you.

You should try:

sudo chown -R iainb:iainb ~iainb

log off and in again.

--
Greetings

Pete

Without vi there is only GNU Emacs
no comments
Re: Files created with emacs are owned by system         


Author: Joost Kremers
Date: Aug 1, 2008 05:01

Peter Dyballa wrote:
> You should try:
>
> sudo chown -R iainb:iainb ~iainb
>
> log off and in again.

are you sure that's such a wise idea? changing ownership of literally
*everything* in someone's home dir?

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
no comments
Re: Files created with emacs are owned by system         


Author: iainb.forms
Date: Aug 1, 2008 06:16

On Aug 1, 12:52 pm, Peter Dyballa wrote:
> Am 01.08.2008 um 13:32 schrieb iainb.forms:
>
>> -rw-r--r--    1 root   iainb       8 Aug  1 12:27 Dummyfile.hs
>
> This file is owned by root – not by you.
>
> You should try:
>
>         sudo chown -R iainb:iainb ~iainb
>
> log off and in again.
>
> --
> Greetings
>
>    Pete
>
> Without vi there is only GNU Emacs
Show full article (0.75Kb)
no comments
Re: Files created with emacs are owned by system         


Author: Peter Dyballa
Date: Aug 1, 2008 06:33

Am 01.08.2008 um 14:01 schrieb Joost Kremers:
>> sudo chown -R iainb:iainb ~iainb
>>
>> log off and in again.
>
> are you sure that's such a wise idea? changing ownership of literally
> *everything* in someone's home dir?

The Haskell file in his home directory he showed did not belong to
him. He also described that he has problems to save files. So I
assumed that also directories might not be owned by him.

BTW, what's so bad (or dangerous or capitalistic) of owning
everything in my home directory tree?

--
Mit friedvollen Grüßen

Pete

Heißt 'Wegwerfgesellschaft', dass mensch diese Gesellschaft weg
werfen *kann* oder *muss*?
no comments
1 2 3 4