Thank you very much Ian,

now I understand more...

Am 05.02.26 um 19:02 schrieb Ian Eure:
Hi gfp,

gfp <[email protected]> writes:

Hi,

1.
I have on the same laptop two users, two separate accounts, installed.

Great, thank you for the clarification.


2.
I added one user and I am not sure now
what is the difference to add a new user and to add a new user through
samba. For the moment I don´t remember why I did that.

I have got that in my config.scm file:

 (service samba-service-type (samba-configuration
                             (enable-smbd? #t)
                             (config-file (plain-file "smb.conf"                              "\
        [global]
        map to guest = Bad User
        logging = syslog@1

        [public]
        browsable = yes
        path = /home/gfp/public
        read only = no
        guest ok = yes
        guest only = yes\n")))))

this second user has got almost no packages installed.
I guess, like it was with the first user, after installing guix
there where almost no packages installed.

I don’t understand how Samba is part of this problem at all.  Your configuration creates a share named "public" which allows anyone with network connectivity to read and write to the `public' subdirectory of the `gfp' user’s home directory.  It doesn’t add an account.  Samba cannot create user accounts.

I have forgotten, what for Samba is,
thanks for making it clear to me.

I am using both "users" at the moment
in order to use this second user for hacking,
to install exwm may be and learn it.
and not to risk my first user installation.

Thank you.  I understand what you want to do, but am having trouble connecting your actions to it.


3.
In order to connect to the first user, where I have got everything
I would like to use this second user also with root privileges,
in order to get some files easily.
..
how can I "add ´seconduser` to sudoers file?
usermod is not found in guix.

You need to edit your operating-system configuration, and add the `wheel' group to the `user-account' record for `seconduser'.

Now I understand why nothing was working.
I added "wheel" etc into my second user account:

(users (cons* (user-account
                  (name "gfp")
                  (comment "Gap")
                  (group "users")
                  (home-directory "/home/gfp")
                  (supplementary-groups
'("wheel" "netdev" "audio" "video" "libvirt" "scanner" "cdrom" "dialout" "kvm"))) (user-account ;added start
                    (name "gast")
                    (comment "The Samba Public User")
                    (group "users")
                    (password (crypt "firsttimepass" "$6$abc"))
                    (home-directory "/home/gast")
(supplementary-groups '("wheel" "scanner" "cdrom" "audio" "video"))) ;added end
                %base-user-accounts))

In the meantime I have changed the password for the second user "gast"
and I don´t  understand why this "firsttimepass" is still there.
Shouldn´t it be changed automatically?
If not, what do I have to do?


If you don’t have a `user-account' record for `seconduser', you do not have two user accounts on your system.


So that I don´t have to install everything again, like emacs...
I did not manage to set it up yet.

If you want a second user, the simplest thing would be to add it to your operating-system, then copy your main user’s home directory to the second user, and change its ownership.

In doing so,
How can I change my ownership?

If I update packages and also my Guix system,
would that refer two both user accounts?

Alternately, you can use the same account, but choose what session type to log into.  If you’re using GDM, SDDM, or some other graphical greeter, they’ll offer you an option for the type of session to log into, depending on which ones are in your operating-system.  I primarily use EXWM, but occasionally use GNOME, and GDM lets me pick which session to start when I log in.

  -- Ian

That is a very good proposal.

I could additionally install exwm with Guix and add it in my config.scm
and on the logging screen where I can choose between KDE, MATE, LXQT
I could also have EXWM and log into it
but next time I can log into KDE...

thanks for help

Gottfried



Attachment: OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to