help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Files created with emacs are owned by system


From: iainb . forms
Subject: Re: Files created with emacs are owned by system
Date: Fri, 1 Aug 2008 07:22:25 -0700 (PDT)
User-agent: G2/1.0

1. I'd use chown, get the error message, curse, and then add sudo to
the front :)

2. I own the directory the Dummyfile.hs was in
drwxr-xr-x    20 iainb  iainb      680 Aug  1 15:04 Write a Scheme
compiler in 48 hours

3. GNU Emacs 21.2.1

4. How do you know this?: I press C-x C-f, type in the filename, press
return, and then use Finder > Get Info or ls -al from a terminal;
-rw-r--r--    1 root   iainb       8 Aug  1 12:27 Dummyfile.hs
-rw-r--r--    1 root   iainb       9 Aug  1 15:03 Dummyfile2.hs

5. How are you launching Emacs?: I open a terminal, type "emacs",
press return. If I run "whoami", then I'm me (iainb) and not root.

6. What is this file?: any file I save from Emacs using C-x C-f.

7. emacs -q:
 -rw-r--r--    1 root   iainb      10 Aug  1 15:04 Dummyfileq.hs

8. emacs -Q: unknown option; I also can't find it in the man page.

9. sudo emacs:
-rw-r--r--    1 root   iainb       9 Aug  1 15:12 Dummyfilesudo.hs

10. su -l root
emacs:
-rw-r--r--    1 root   iainb       9 Aug  1 15:16 Dummyfilesuroot.hs

and in response to the "use a bulldozer to crack a nut" suggestions ;)
11. I'm not rebuilding OSX just for Emacs
12. I'm not recursing through every file to change it's ownership


Most importantly, (probably) it does seem that emacs is running as
root
ps -aux | grep emacs:
root      1805   0.0 -0.2    48104   4548  p2  S+    7:38PM   0:00.36
emacs

I have no idea why it's doing this or how to change it. If I quit
emacs and while in the same terminal run "whoami", I'm still iainb.

Regards,
Iain


reply via email to

[Prev in Thread] Current Thread [Next in Thread]