From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Execute Emacs command with root privilege. Date: Fri, 18 Jun 2021 11:46:44 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37181"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 18 05:47:41 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lu5Tp-0009XH-Co for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Jun 2021 05:47:41 +0200 Original-Received: from localhost ([::1]:54804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lu5Tn-0004SW-SG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 23:47:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lu5T9-0004Qf-RA for help-gnu-emacs@gnu.org; Thu, 17 Jun 2021 23:46:59 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:36524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lu5T8-0007mD-6z for help-gnu-emacs@gnu.org; Thu, 17 Jun 2021 23:46:59 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id d16so6661815lfn.3 for ; Thu, 17 Jun 2021 20:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=SzrUFQS9Gw6O70L4LASpCg6A0e9iZ1Hapl2qN0wYJ4E=; b=uZRDnV3ZyZKU2eWTbWLUaQIoZTlg/e9PRhDpHNoHscQvRnKuRFCjEtsm216blC4EVL igG/ZimjIIoEy6jvSzSI8cT6NWfFO8PQAtHVN5KRNuchd5P45FaDE/nhT8ncJHcjwjQ6 G0AgmM36rjgSdJzVYKHSs3s4D1zb/PtSZd7h9KzyByvCOkI9z35jOqUqjLFIr/GcSJdJ Jp3ER4aZ6ZipEW3m/RlBlFqmYMLpOl2Jxox0rVsKNpVvJ+kQ/ctMoEbjGGI7k23daNuG WoDCdk7u3wNtRar9EJBsdGfmqiUPBzHp27xkKzL9BqARXjFwYV9N7TaYNZ0d/IlG9M+i XNOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=SzrUFQS9Gw6O70L4LASpCg6A0e9iZ1Hapl2qN0wYJ4E=; b=NZzKi3iPG8ExRuatrpnp2jN7k19LwhquuTVXSho9f4hJXe3fzYOvf3X5ajgU8IElSp XLcxeLAHgg9QZz41L4rkZx9HMx/enykevPm5w1bf7bcKphMekY2qVnaSrPjlahvtZOVy fx6l1rJgIEiT+3DKAZSbV/n+7QkTkjScNTC48BuHEU145hg0to3f8QEkQJRRNsB5jMhf XV13zOCB1QHCJ2zKGcQECqawi/m9x1S8jBnoMunF3NdJny3Xn7c+y+X2zN+M1sO64l8M dAdYfuqZcFz5vxn6ptnHIVk5ZZxTvh1r+Bxj4J0+SJxZSSLIXM36Py6qCyaejsV9sHJM l+nA== X-Gm-Message-State: AOAM531/0Gx7Kh/Tjf5M+kfy4/evYkSSTmCho5xUehZe59mH2u/CBCJ7 ufIJd4D4GSYi3+MDg3sEX+ERrpU99crr8qyWlos= X-Google-Smtp-Source: ABdhPJwkfgsY5LdlwmeLN8baIJy3b2u7s6dibZ7pz5J3vYIIKDFZigz+IN+ru05BGcIot58G97LTJys68Jq2duL9xkY= X-Received: by 2002:ac2:5084:: with SMTP id f4mr1366620lfm.466.1623988015938; Thu, 17 Jun 2021 20:46:55 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130970 Archived-At: On Thu, Jun 17, 2021 at 4:26 PM Hongyi Zhao wrote: > > On Thu, Jun 17, 2021 at 3:21 PM Jean Louis wrote: > > > > * Hongyi Zhao [2021-06-17 06:09]: > > > In Emacs, when I issue the 'M-x TeX-auto-generate-global' command > > > after loading AUCTeX, the followng error will be triggered: > > > > > > TeX-auto-store: Opening output file: Permission denied, > > > /usr/local/var/auctex/amsppt.el > > > > > > Is it possible to enable the root privilege for executing the above > > > command? > > > > It seems like auctex wrote or wanted to write something in system's > > directory /usr/local/var/auctex/ but it could not. > > > > Instead of root privilege you should maybe verify that you have write > > permissions to that directory. > > > > Does directory exist? Verify if it is there. > > You're right. The following commands will fix this problem: > > $ sudo mkdir /usr/local/var/auctex > $ sudo chown werner:werner /usr/local/var/auctex/ See and for further discussions and more graceful solution. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China