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: Thu, 17 Jun 2021 16:26:47 +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="19373"; 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 Thu Jun 17 10:27:44 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 1ltnNI-0004ot-8i for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 10:27:44 +0200 Original-Received: from localhost ([::1]:36634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltnNH-0007Aw-9w for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 04:27:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltnMd-0007AX-3Y for help-gnu-emacs@gnu.org; Thu, 17 Jun 2021 04:27:03 -0400 Original-Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:40492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltnMb-0007QZ-CG for help-gnu-emacs@gnu.org; Thu, 17 Jun 2021 04:27:02 -0400 Original-Received: by mail-lj1-x22c.google.com with SMTP id x14so7753612ljp.7 for ; Thu, 17 Jun 2021 01:27:00 -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=JRQyVDrzzaVZVoDOKWAvXcKriaNYT+2H1VXqpdanLos=; b=qHQUEIDK5DAeKileTPD4yyD68BhzMWODzy0IL4Huwv3L9rwxCU4pDphvrnVLA+NMwI eMzTU31Cs4QL159bAorqSuOtlvXrpy6pjy0MjDQJE4hDba+4/UosUKDIfzp6ZFK3j3lD OqvqKIUlsEX+Sy+5wnjHLiH2KH6b5dhaxW/7c320JZyzUevMtdXXh6dNSo82f16SjxJh JUwHfWRU0GFiFBYTV3nwTwS91yvfSfLvjboJQmfi4pq59MtLZubDmPvf+BwcBaQgyit+ b69hqoyvSUcv6MLPAS2/8xoRjtTIHyyTsh4j35RyIAkx7fo8j8ozG1vxTf1xio1/2HMe b3UA== 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=JRQyVDrzzaVZVoDOKWAvXcKriaNYT+2H1VXqpdanLos=; b=NaUWMRig5MgRoFrmR0HWpKlkevOdgDq5HQfXyxXqt1NHrQxxmwy86UMU8m1GK4cmUi XyyMap6j6byfs2D7KPT5PLgPvpAqAbP/5+2iAW1SfwPQV/0IzR0jWiaNbU++GknQVNN2 gIcmHwq49fPtL5l+gJDRJPPhj9I8sNYXcrwSeLy5nIFVbWu//q38PAerM32CscmI0cJR uMNF9tZtGssfFywTyjwtnZI3LwdhY+2fc/qvG7az4+WeSCGgIprvrB/H4DaCOWHcaeSO tATDHrmb6LSpcRBnAp8X58CFXQRRdhyhG0jiE1YE2cTez7SfrleZC9TTJBtX4zfxZjcW 1rLw== X-Gm-Message-State: AOAM530DALeSUNzHmteLa9cqrbWqTuEnbNda6AOf2aYu2FuRUUsc+sqm f0iFR1/dcv0YObzrsPk1opCRQBJVQZjNFlBT1do= X-Google-Smtp-Source: ABdhPJy2hqGgU0im5L1M9uqQoUHUnJPF/NC6e/yObQpqdGPT0Um77cR6Ez/qRV+QJLsgFnkXdSl8pKMg8RnffovQLwY= X-Received: by 2002:a05:651c:b0d:: with SMTP id b13mr3648861ljr.481.1623918419444; Thu, 17 Jun 2021 01:26:59 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x22c.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:130963 Archived-At: 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/ HY -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China