Hi,

thanks, it worked as I copied this into my config.scm
and did a sudo guix system reconfigure /etc/config.scm

now I have a second account with a password.
I don´t know this password to log into it.

  (password (crypt "firsttimepass" "$6$abc"))

how can I find out the password?

thanks

Gottfried



Am 07.04.25 um 06:55 schrieb Ignas Lapėnas:
So what do I have to do in Guix to add a new user and create a samba
login for that user?

My guess would be to add the user like other regular users in Guix

```
     (operating-system
      ....
      (users (cons* (user-account
                     (name "myuser")
                     (comment "My Regular User")
                     (group "users")
                    (password (crypt "first-time-pass" "$6$abc"))
                     (home-directory "/home/myuser")
                     (supplementary-groups '("wheel" "netdev" "audio" "video")))
                    (user-account
                     (name "gast")
                     (comment "The Samba Public User")
                     (group "users")
                     (password (crypt "firsttimepass" "$6$abc"))
                     (home-directory "/home/mariuszidonis")
                     (supplementary-groups '()))
                    %base-user-accounts))
      ...
      )
```

To use smbpasswd to create a samba login, you should just have
smbpasswd program available in your profile.


Attachment: OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to