From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reinhard Kotucha Newsgroups: gmane.emacs.bugs Subject: bug#16154: Emacs crashes if $HOME isn't writable Date: Sun, 15 Dec 2013 08:59:25 +0100 Message-ID: <21165.24925.926459.238783@zaphod.ms25.net> Reply-To: reinhard.kotucha@web.de NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1387094424 30076 80.91.229.3 (15 Dec 2013 08:00:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2013 08:00:24 +0000 (UTC) To: 16154@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 15 09:00:28 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vs6cm-0006rC-A5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 09:00:28 +0100 Original-Received: from localhost ([::1]:50123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs6cl-0007e8-Jj for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 03:00:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs6cY-0007Vv-Vm for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 03:00:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vs6cP-0003jP-7A for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 03:00:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs6cP-0003i7-4L for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 03:00:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vs6cO-0001CC-9t for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 03:00:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reinhard Kotucha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2013 08:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16154 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13870943964550 (code B ref -1); Sun, 15 Dec 2013 08:00:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2013 07:59:56 +0000 Original-Received: from localhost ([127.0.0.1]:50682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vs6cF-0001BJ-8y for submit@debbugs.gnu.org; Sun, 15 Dec 2013 02:59:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40488) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vs6cC-0001B9-Ss for submit@debbugs.gnu.org; Sun, 15 Dec 2013 02:59:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vs6c3-0003Qu-61 for submit@debbugs.gnu.org; Sun, 15 Dec 2013 02:59:52 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs6c3-0003Qq-32 for submit@debbugs.gnu.org; Sun, 15 Dec 2013 02:59:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs6bv-0006yp-Nz for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 02:59:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vs6bo-0003Pm-Df for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 02:59:35 -0500 Original-Received: from mout.web.de ([212.227.17.11]:61084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs6bo-0003Pi-4i for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 02:59:28 -0500 Original-Received: from zaphod.ms25.net ([82.83.34.60]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0M40na-1Vb7zI41SM-00rWj3 for ; Sun, 15 Dec 2013 08:59:27 +0100 X-Mailer: VM 8.2.0b under 23.4.1 (x86_64-unknown-linux-gnu) X-Provags-ID: V03:K0:KYoQN7V84Q7FLGug7fiyEXMjb/Nv0tyhWj6d65xIcTIDeyG/mkU B5A1HksLopGcTiAUIjCYvfGtNtjqK3j+6J2xgkjGfJKYCjHT4qTxapoIgxUdQHhfa83zPRT e35q1XJfqPML6XhPVkyHTSBpujYYBimU7XJulohC/YN/DWL85VBbVExnJr2INi/1gXVatOK Y9P5BDJw4yj8mjSInK/iA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82007 Archived-At: Hi, when I do (as root) su nobody VISUAL=/usr/local/bin/emacs-24.3 crontab -e Emacs says Creating directory: permission denied, //.emacs.d/ and refuses to do anything useful. It's on purpose that user 'nobody' doesn't have a writable HOME directory. My current workaround is to put the lines if [[ ${LOGNAME} == 'nobody' ]]; then EDITOR=vim else EDITOR=emacs fi into /etc/bashrc. It would be better if Emacs can be used even if the HOME directory isn't writable. vim allows me to edit the crontab and issues a warning E138: Can't write viminfo file /.viminfo! afterwards end but emacs refuses to do anything useful if $HOME isn't writable. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------