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 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'.
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.
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