From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Proper syntax for plain-file with sudoers-file Date: Sun, 21 Jun 2015 16:30:47 +0300 Message-ID: <87fv5lyyrc.fsf@gmail.com> References: <52E51681-0999-4A83-BAE4-0E89526468BB@sumou.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6fKl-0000Ha-J5 for guix-devel@gnu.org; Sun, 21 Jun 2015 09:30:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6fKi-0008Gs-AW for guix-devel@gnu.org; Sun, 21 Jun 2015 09:30:51 -0400 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:34488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6fKh-0008Gh-Q2 for guix-devel@gnu.org; Sun, 21 Jun 2015 09:30:48 -0400 Received: by lagx9 with SMTP id x9so8308365lag.1 for ; Sun, 21 Jun 2015 06:30:47 -0700 (PDT) In-Reply-To: <52E51681-0999-4A83-BAE4-0E89526468BB@sumou.com> (=?utf-8?B?IueZveOBhOeGiu+8oOebuOaSsumBkw==?= "'s message of "Sun, 21 Jun 2015 11:36:09 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?utf-8?B?55m944GE54aK77yg55u45pKy6YGT?= Cc: GuixSD =E7=99=BD=E3=81=84=E7=86=8A=EF=BC=A0=E7=9B=B8=E6=92=B2=E9=81=93 (2015-06-21= 12:36 +0300) wrote: > I've been using > (sudoers "xxx...") > in my config.scm file a long time.=20 > > Now, for some time it's been warning me that using a string for file > =E2=80=9Csudoers=E2=80=9D is deprecated and to use =E2=80=9Cplain-file=E2= =80=9D. > > So I've tried > (sudoers-file (plain-file "/etc/sudoers" "xxx...")) > but I'm told: =E2=80=9Cinvalid character `/' in name `/etc/sudoers'=E2=80= =9D > > What's the proper syntax?=20 Hi, I use the following: (sudoers-file (local-file "/path/to/my/sudoers")) As for the 'plain-file', IIUC it may be used like this (not tested): (sudoers-file (plain-file "sudoers" "")) i.e., don't use "/etc/sudoers", just "sudoers" =E2=80=93 with that "/gnu/store/=E2=80=A6-sudoers" file with the specified contents will be cre= ated. But again, I've never used 'plain-file' so I'm not absolutely sure. --=20 Alex