On 14/03/25 12:12, Christophe Pisteur wrote:
I'll create a test user to see if it works for me too.
I'm not sure what syntax to use for more than one user.
For two users, should we do:

(users (cons* (user-account
                                (name "bob")
                                (comment "Alice's bro")
                                (group "users")
                                (home-directory "/home/bob")
                                (supplementary-groups '("wheel" "netdev" "audio" "video"))
                                (name "alice")
                                (comment "Bob's sister")
                                (group "users")
                                (home-directory "/home/alice")
                                (supplementary-groups '("wheel" "netdev" "audio" "video")))
%base-user-accounts))

No, it would be one «user-account» object per user. Like this:

(users
   (cons*
    (user-account ...)
    (user-account ...)
    %base-user-accounts))

Then, after reconfiguring and rebooting, you can give a password to the new user by changing to TTY2, for example, and using the passwd command like this:

  sudo passwd name_of_the_new_user

Please let us know how it goes,

Attachment: OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to