From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Bauer Subject: Re: editing /etc/sudoers Date: Mon, 17 Jun 2019 13:02:30 -0500 Message-ID: <20190617180230.GI12459@serpent> References: <20190614115539.GA22815@serpent> <20190616143031.GD12459@serpent> <45f53d38f8dbf54c80bc7e2153785295@riseup.net> <20190616232054.GA1602@nimrod> <20190617071712.GA1566@jurong> <73f74c18f09a60d93371f736c1b4a996@riseup.net> <20190617154418.GG12459@serpent> <1CADB6BB-4C4E-43C8-BB5C-107D564B2C89@asu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53777) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcvxw-0002EX-LJ for help-guix@gnu.org; Mon, 17 Jun 2019 14:02:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcvxp-0007NT-B1 for help-guix@gnu.org; Mon, 17 Jun 2019 14:02:44 -0400 Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]:46902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcvxl-0007Ia-Lh for help-guix@gnu.org; Mon, 17 Jun 2019 14:02:38 -0400 Received: by mail-vs1-xe2e.google.com with SMTP id l125so6702570vsl.13 for ; Mon, 17 Jun 2019 11:02:34 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1CADB6BB-4C4E-43C8-BB5C-107D564B2C89@asu.edu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: John Soo Cc: help-guix@gnu.org, Quiliro's lists On Mon, Jun 17, 2019 at 10:03:20AM -0700, John Soo wrote: > Sorry this is so confusing. Let me know if I’m missed something since > I’ve been half-following this thread. I think what you may want to do > is use the sudoers-file field when specifying your operating system > rather than using visudo to edit the file. This way you will have > persistent and declarative specification for the sudoers file. The > sudoers-file field allows you to place an arbitrary file-like object in > it, so you can put whatever you want to add using visudo there and it > will work the same. Check the manual for > reference: [1]https://www.gnu.org/software/guix/manual/en/html_node/ope > rating_002dsystem-Reference.html#operating_002dsystem-Reference John, Correct, I got my local sudoers working a few days ago, so there's no longer any confusion on my end (but thanks for your reply). However, guix's visudo should probably be patched to allow editing of a *local* ~/etc/sudoers file, which currently won't work because /usr/bin/vi appears to be hard-coded. -Jeff