unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54923: more than one target service of type 'account'
@ 2022-04-14  4:49 raingloom
  2022-06-08 20:19 ` Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: raingloom @ 2022-04-14  4:49 UTC (permalink / raw)
  To: 54923

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

> more than one target service of type 'account'

I did not add any new service, I just modified openssh-service-type.

```
(operating-system
    (inherit os)
    (services
     (modify-services
         (operating-system-services os)
         (openssh-service-type
          config =>
          (openssh-configuration
           (inherit config)
           (permit-root-login 'without-password))))))
```

Full system description in attachment.

[-- Attachment #2: installer.scm --]
[-- Type: text/x-scheme, Size: 1380 bytes --]

;; TODO convert to R6RS module syntax?
(use-modules
 (gnu packages android)
 (gnu packages bootloaders)
 (gnu packages certs)
 (gnu packages cups)
 (gnu packages ghostscript)
 (gnu packages gnome)
 (gnu packages linux)
 (gnu packages networking)
 (gnu packages package-management)
 (gnu packages shells)
 (gnu packages suckless)
 (gnu packages wm)
 (gnu packages xdisorg)
 (gnu packages xorg)
 (gnu services cups)
 (gnu services desktop)
 (gnu services linux)
 (gnu services networking)
 (gnu services ssh)
 (gnu services virtualization)
 (gnu services xorg)
 (gnu services)
 (gnu system install)
 (gnu system nss)
 (gnu system shadow))


;; this is for devices with no screen, or UART, or anything of the sort
;; the name is apt though, because this completely ruins security!
;; DO NOT USE THIS FOR THE FINAL SYSTEM
;; use it only for the inital setup, then reconfigure with a proper config

(define-public (backdoor-os os)
  (operating-system
    (inherit os)
    (services
     (modify-services
         (operating-system-services os)
         (openssh-service-type
          config =>
          (openssh-configuration
           (inherit config)
           (permit-root-login 'without-password)))))))

(define-public backdoored-installation-os
  (backdoor-os installation-os))

;; guix system: error: more than one target service of type 'account'
backdoored-installation-os

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#54923: more than one target service of type 'account'
  2022-04-14  4:49 bug#54923: more than one target service of type 'account' raingloom
@ 2022-06-08 20:19 ` Maxim Cournoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2022-06-08 20:19 UTC (permalink / raw)
  To: raingloom; +Cc: 54923

Hello!

raingloom <raingloom@riseup.net> writes:

>> more than one target service of type 'account'
>
> I did not add any new service, I just modified openssh-service-type.
>
> ```
> (operating-system
>     (inherit os)
>     (services
>      (modify-services
>          (operating-system-services os)
>          (openssh-service-type
>           config =>
>           (openssh-configuration
>            (inherit config)
>            (permit-root-login 'without-password))))))
> ```

I think it's becaused you used operating-system-services instead of
operating-system-user-services; could you try again with the later?

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-08 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14  4:49 bug#54923: more than one target service of type 'account' raingloom
2022-06-08 20:19 ` Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).