Subject: bug#37445: 27.0.50; Permission denied after make install

From: Tino Calancha <[email-masked]>
Date: Fri, 20 Sep 2019 06:07:54 +0000 (UTC)

On Thu, 19 Sep 2019, Paul Eggert wrote:

> On 9/19/19 4:35 AM, Tino Calancha wrote:
>> 
>> This code starts Emacs on my Linux machine but it refuses to load my .emacs 
>> file:
>
> Hmm, I'm not seeing the problem. As user_foo, what happens if you run this 
> shell command?

I have reproduced the problem at 2 Amazon machines with the following 
recipe:
[A call to `require' inside .emacs seems to fire the issue]

$ whoami
ec2-user
$ cd ~/soft/emacs-master
$ make && sudo make install

$ ls /home
ec2-user

# Create a fresh new user
$ sudo useradd user_foo
$ ls /home
ec2-user  user_foo

# Change to the new user and go to its home dir
$ sudo su user_foo
$ cd
$ pwd
/home/user_foo
$ ls -a
.  ..  .bash_logout  .bash_profile  .bashrc  .emacs

$ cat .emacs
;; .emacs

(custom-set-variables
  ;; uncomment to always end a file with a newline
  ;'(require-final-newline t)
  ;; uncomment to disable loading of "default.el" at startup
  ;'(inhibit-default-init t)
  ;; default to unified diffs
  '(diff-switches "-u"))

;;; uncomment for CJK utf-8 support for non-Asian users
;; (require 'un-define)

# Add (require 'ert) at the botton: this seems to fire the issue
$ echo "(require 'ert)" >> .emacs

# Now launch Emacs: you will see at *Warnings* buffer
# File error: Testing file, Permission denied, /home/ec2-user/soft/emacs-master/src

# Now, if you want you can try:
M-: (require 'ert) RET
Testing file: Permission denied, /home/ec2-user/soft/emacs-master/src