Alberto Garcia

Configuració del servidor SAMBA

El primer que farem serà actualitzar els repositoris instal·lats

sudo apt update

Despres farem l’instalacios dels paquets oficials de samba i quan ens pregunti Y/N clicarem y i intro 

sudo apt install samba samba-common-bin
Resultat de la comanda
vagrant@debian:~$ sudo apt install samba samba-common-bin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  attr dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv ibverbs-providers libassuan0 libavahi-client3
  libavahi-common-data libavahi-common3 libboost-iostreams1.74.0 libboost-thread1.74.0 libcephfs2 libcups2 libfmt9 libgfapi0 libgfrpc0 libgfxdr0
  libglusterfs0 libgpgme11 libgpm2 libibverbs1 libksba8 libldb2 libncurses6 libnpth0 libpython3.11 librados2 librdmacm1 libtalloc2 libtdb1 libtevent0
  liburing2 libwbclient0 libyaml-0-2 pinentry-curses python3-anyio python3-cffi-backend python3-click python3-colorama python3-cryptography
  python3-dnspython python3-gpg python3-h11 python3-h2 python3-hpack python3-httpcore python3-httpx python3-hyperframe python3-ldb python3-markdown
  python3-markdown-it python3-mdurl python3-pygments python3-requests-toolbelt python3-rfc3986 python3-rich python3-samba python3-sniffio python3-talloc
  python3-tdb python3-yaml samba-ad-provision samba-common samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
Suggested packages:
  pinentry-gnome3 tor parcimonie xloadimage scdaemon cups-common gpm pinentry-doc python-cryptography-doc python3-cryptography-vectors python3-trio
  python3-aioquic python-markdown-doc python-pygments-doc ttf-bitstream-vera ctdb ldb-tools ntp | chrony ufw winbind heimdal-clients
The following NEW packages will be installed:
  attr dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm ibverbs-providers libassuan0 libavahi-client3
  libavahi-common-data libavahi-common3 libboost-iostreams1.74.0 libboost-thread1.74.0 libcephfs2 libcups2 libfmt9 libgfapi0 libgfrpc0 libgfxdr0
  libglusterfs0 libgpgme11 libgpm2 libibverbs1 libksba8 libldb2 libncurses6 libnpth0 libpython3.11 librados2 librdmacm1 libtalloc2 libtdb1 libtevent0
  liburing2 libwbclient0 libyaml-0-2 pinentry-curses python3-anyio python3-cffi-backend python3-click python3-colorama python3-cryptography
  python3-dnspython python3-gpg python3-h11 python3-h2 python3-hpack python3-httpcore python3-httpx python3-hyperframe python3-ldb python3-markdown
  python3-markdown-it python3-mdurl python3-pygments python3-requests-toolbelt python3-rfc3986 python3-rich python3-samba python3-sniffio python3-talloc
  python3-tdb python3-yaml samba samba-ad-provision samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
The following packages will be upgraded:
  gpgv
1 upgraded, 76 newly installed, 0 to remove and 21 not upgraded.
Need to get 44.6 MB of archives.
After this operation, 153 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bookworm/main amd64 python3-dnspython all 2.3.0-1 [152 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libtalloc2 amd64 2.4.0-f2 [25.6 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 libtdb1 amd64 1.4.8-2 [44.5 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 libtevent0 amd64 0.14.1-1 [37.9 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 libldb2 amd64 2:2.6.2+samba4.17.12+dfsg-0+deb12u3 [162 kB]
Get:6 http://deb.debian.org/debian bookworm/main amd64 libpython3.11 amd64 3.11.2-6+deb12u6 [1987 kB]
Get:7 http://deb.debian.org/debian bookworm/main amd64 python3-ldb amd64 2:2.6.2+samba4.17.12+dfsg-0+deb12u3 [61.3 kB]
Get:8 http://deb.debian.org/debian bookworm/main amd64 python3-tdb amd64 1.4.8-2 [16.5 kB]
Get:9 http://deb.debian.org/debian bookworm/main amd64 libavahi-common-data amd64 0.8-10+deb12u1 [107 kB]
Get:10 http://deb.debian.org/debian bookworm/main amd64 libavahi-common3 amd64 0.8-10+deb12u1 [42.1 kB]
Get:11 http://deb.debian.org/debian bookworm/main amd64 libavahi-client3 amd64 0.8-10+deb12u1 [45.8 kB]
Get:12 http://deb.debian.org/debian bookworm/main amd64 libwbclient0 amd64 2:4.17.12+dfsg-0+deb12u3 [54.5 kB]
Get:13 http://deb.debian.org/debian bookworm/main amd64 samba-libs amd64 2:4.17.12+dfsg-0+deb12u3 [5657 kB]
Get:14 http://deb.debian.org/debian bookworm/main amd64 python3-talloc amd64 2.4.0-f2 [14.5 kB]
Get:15 http://deb.debian.org/debian bookworm/main amd64 python3-samba amd64 2:4.17.12+dfsg-0+deb12u3 [2827 kB]
Get:16 http://deb.debian.org/debian bookworm/main amd64 samba-common all 2:4.17.12+dfsg-0+deb12u3 [88.4 kB]
Get:17 http://deb.debian.org/debian bookworm/main amd64 libcups2 amd64 2.4.2-3+deb12u9 [245 kB]
Get:18 http://deb.debian.org/debian bookworm/main amd64 libncurses6 amd64 6.4-4 [103 kB]
Get:19 http://deb.debian.org/debian bookworm/main amd64 samba-common-bin amd64 2:4.17.12+dfsg-0+deb12u3 [1179 kB]
Get:20 http://deb.debian.org/debian bookworm/main amd64 tdb-tools amd64 1.4.8-2 [26.6 kB]
Get:21 http://deb.debian.org/debian bookworm/main amd64 samba amd64 2:4.17.12+dfsg-0+deb12u3 [947 kB]
Get:22 http://deb.debian.org/debian bookworm/main amd64 gpgv amd64 2.2.40-1.1+deb12u2 [649 kB]
Get:23 http://deb.debian.org/debian bookworm/main amd64 attr amd64 1:2.5.1-4 [41.2 kB]
Get:24 http://deb.debian.org/debian bookworm/main amd64 libassuan0 amd64 2.5.5-5 [48.5 kB]
Get:25 http://deb.debian.org/debian bookworm/main amd64 gpgconf amd64 2.2.40-1.1+deb12u2 [565 kB]
Get:26 http://deb.debian.org/debian bookworm/main amd64 libksba8 amd64 1.6.3-2 [128 kB]
Get:27 http://deb.debian.org/debian bookworm/main amd64 libnpth0 amd64 1.6-3 [19.0 kB]
Get:28 http://deb.debian.org/debian bookworm/main amd64 dirmngr amd64 2.2.40-1.1+deb12u2 [793 kB]
Get:29 http://deb.debian.org/debian bookworm/main amd64 gnupg-l10n all 2.2.40-1.1+deb12u2 [1093 kB]
Get:30 http://deb.debian.org/debian bookworm/main amd64 gnupg-utils amd64 2.2.40-1.1+deb12u2 [927 kB]
Get:31 http://deb.debian.org/debian bookworm/main amd64 gpg amd64 2.2.40-1.1+deb12u2 [950 kB]
Get:32 http://deb.debian.org/debian bookworm/main amd64 pinentry-curses amd64 1.2.1-1 [77.4 kB]
Get:33 http://deb.debian.org/debian bookworm/main amd64 gpg-agent amd64 2.2.40-1.1+deb12u2 [695 kB]
Get:34 http://deb.debian.org/debian bookworm/main amd64 gpg-wks-client amd64 2.2.40-1.1+deb12u2 [541 kB]
Get:35 http://deb.debian.org/debian bookworm/main amd64 gpg-wks-server amd64 2.2.40-1.1+deb12u2 [531 kB]
Get:36 http://deb.debian.org/debian bookworm/main amd64 gpgsm amd64 2.2.40-1.1+deb12u2 [671 kB]
Get:37 http://deb.debian.org/debian bookworm/main amd64 gnupg all 2.2.40-1.1+deb12u2 [846 kB]
Get:38 http://deb.debian.org/debian bookworm/main amd64 libibverbs1 amd64 44.0-2 [60.7 kB]
Get:39 http://deb.debian.org/debian bookworm/main amd64 ibverbs-providers amd64 44.0-2 [335 kB]
Get:40 http://deb.debian.org/debian bookworm/main amd64 libboost-iostreams1.74.0 amd64 1.74.0+ds1-21 [240 kB]
Get:41 http://deb.debian.org/debian bookworm/main amd64 libboost-thread1.74.0 amd64 1.74.0+ds1-21 [257 kB]
Get:42 http://deb.debian.org/debian bookworm/main amd64 libfmt9 amd64 9.1.0+ds1-2 [113 kB]
Get:43 http://deb.debian.org/debian bookworm/main amd64 librdmacm1 amd64 44.0-2 [68.6 kB]
Get:44 http://deb.debian.org/debian bookworm/main amd64 librados2 amd64 16.2.15+ds-0+deb12u1 [3249 kB]
Get:45 http://deb.debian.org/debian bookworm/main amd64 libcephfs2 amd64 16.2.15+ds-0+deb12u1 [720 kB]
Get:46 http://deb.debian.org/debian bookworm/main amd64 libgfxdr0 amd64 10.3-5 [3106 kB]
Get:47 http://deb.debian.org/debian bookworm/main amd64 libglusterfs0 amd64 10.3-5 [3347 kB]
Get:48 http://deb.debian.org/debian bookworm/main amd64 libgfrpc0 amd64 10.3-5 [3131 kB]
Get:49 http://deb.debian.org/debian bookworm/main amd64 libgfapi0 amd64 10.3-5 [3158 kB]
Get:50 http://deb.debian.org/debian bookworm/main amd64 libgpgme11 amd64 1.18.0-3+b1 [300 kB]
Get:51 http://deb.debian.org/debian bookworm/main amd64 libgpm2 amd64 1.20.7-10+b1 [14.2 kB]
Get:52 http://deb.debian.org/debian bookworm/main amd64 liburing2 amd64 2.3-3 [12.6 kB]
Get:53 http://deb.debian.org/debian bookworm/main amd64 libyaml-0-2 amd64 0.2.5-1 [53.6 kB]
Get:54 http://deb.debian.org/debian bookworm/main amd64 python3-sniffio all 1.2.0-1 [6372 B]
Get:55 http://deb.debian.org/debian bookworm/main amd64 python3-anyio all 3.6.2-1 [54.0 kB]
Get:56 http://deb.debian.org/debian bookworm/main amd64 python3-cffi-backend amd64 1.15.1-5+b1 [84.6 kB]
Get:57 http://deb.debian.org/debian bookworm/main amd64 python3-colorama all 0.4.6-2 [36.8 kB]
Get:58 http://deb.debian.org/debian bookworm/main amd64 python3-click all 8.1.3-2 [92.2 kB]
Get:59 http://deb.debian.org/debian bookworm/main amd64 python3-cryptography amd64 38.0.4-3+deb12u1 [665 kB]
Get:60 http://deb.debian.org/debian bookworm/main amd64 python3-gpg amd64 1.18.0-3+b1 [363 kB]
Get:61 http://deb.debian.org/debian bookworm/main amd64 python3-h11 all 0.14.0-1.1~deb12u1 [50.6 kB]
Get:62 http://deb.debian.org/debian bookworm/main amd64 python3-hpack all 4.0.0-2 [25.0 kB]
Get:63 http://deb.debian.org/debian bookworm/main amd64 python3-hyperframe all 6.0.0-1 [14.5 kB]
Get:64 http://deb.debian.org/debian bookworm/main amd64 python3-h2 all 4.1.0-4 [80.8 kB]
Get:65 http://deb.debian.org/debian bookworm/main amd64 python3-httpcore all 0.16.3-1 [38.4 kB]
Get:66 http://deb.debian.org/debian bookworm/main amd64 python3-pygments all 2.14.0+dfsg-1 [783 kB]
Get:67 http://deb.debian.org/debian bookworm/main amd64 python3-mdurl all 0.1.2-1 [9444 B]
Get:68 http://deb.debian.org/debian bookworm/main amd64 python3-markdown-it all 2.1.0-5 [58.8 kB]
Get:69 http://deb.debian.org/debian bookworm/main amd64 python3-rich all 13.3.1-1 [202 kB]
Get:70 http://deb.debian.org/debian bookworm/main amd64 python3-rfc3986 all 1.5.0-2 [22.2 kB]
Get:71 http://deb.debian.org/debian bookworm/main amd64 python3-httpx all 0.23.3-1 [72.3 kB]
Get:72 http://deb.debian.org/debian bookworm/main amd64 python3-markdown all 3.4.1-2 [64.7 kB]
Get:73 http://deb.debian.org/debian bookworm/main amd64 python3-requests-toolbelt all 0.10.1-1 [41.3 kB]
Get:74 http://deb.debian.org/debian bookworm/main amd64 python3-yaml amd64 6.0-3+b2 [119 kB]
Get:75 http://deb.debian.org/debian bookworm/main amd64 samba-ad-provision all 2:4.17.12+dfsg-0+deb12u3 [416 kB]
Get:76 http://deb.debian.org/debian bookworm/main amd64 samba-dsdb-modules amd64 2:4.17.12+dfsg-0+deb12u3 [317 kB]
Get:77 http://deb.debian.org/debian bookworm/main amd64 samba-vfs-modules amd64 2:4.17.12+dfsg-0+deb12u3 [428 kB]
Fetched 44.6 MB in 1s (40.4 MB/s)       
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_GB:en",
	LC_ALL = (unset),
	LC_MONETARY = "es_ES.UTF-8",
	LC_ADDRESS = "es_ES.UTF-8",
	LC_TELEPHONE = "es_ES.UTF-8",
	LC_NAME = "es_ES.UTF-8",
	LC_MEASUREMENT = "es_ES.UTF-8",
	LC_IDENTIFICATION = "es_ES.UTF-8",
	LC_NUMERIC = "es_ES.UTF-8",
	LC_PAPER = "es_ES.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package python3-dnspython.
(Reading database ... 34501 files and directories currently installed.)
Preparing to unpack .../00-python3-dnspython_2.3.0-1_all.deb ...
Unpacking python3-dnspython (2.3.0-1) ...
Selecting previously unselected package libtalloc2:amd64.
Preparing to unpack .../01-libtalloc2_2.4.0-f2_amd64.deb ...
Unpacking libtalloc2:amd64 (2.4.0-f2) ...
Selecting previously unselected package libtdb1:amd64.
Preparing to unpack .../02-libtdb1_1.4.8-2_amd64.deb ...
Unpacking libtdb1:amd64 (1.4.8-2) ...
Selecting previously unselected package libtevent0:amd64.
Preparing to unpack .../03-libtevent0_0.14.1-1_amd64.deb ...
Unpacking libtevent0:amd64 (0.14.1-1) ...
Selecting previously unselected package libldb2:amd64.
Preparing to unpack .../04-libldb2_2%3a2.6.2+samba4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking libldb2:amd64 (2:2.6.2+samba4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package libpython3.11:amd64.
Preparing to unpack .../05-libpython3.11_3.11.2-6+deb12u6_amd64.deb ...
Unpacking libpython3.11:amd64 (3.11.2-6+deb12u6) ...
Selecting previously unselected package python3-ldb.
Preparing to unpack .../06-python3-ldb_2%3a2.6.2+samba4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking python3-ldb (2:2.6.2+samba4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package python3-tdb.
Preparing to unpack .../07-python3-tdb_1.4.8-2_amd64.deb ...
Unpacking python3-tdb (1.4.8-2) ...
Selecting previously unselected package libavahi-common-data:amd64.
Preparing to unpack .../08-libavahi-common-data_0.8-10+deb12u1_amd64.deb ...
Unpacking libavahi-common-data:amd64 (0.8-10+deb12u1) ...
Selecting previously unselected package libavahi-common3:amd64.
Preparing to unpack .../09-libavahi-common3_0.8-10+deb12u1_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.8-10+deb12u1) ...
Selecting previously unselected package libavahi-client3:amd64.
Preparing to unpack .../10-libavahi-client3_0.8-10+deb12u1_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.8-10+deb12u1) ...
Selecting previously unselected package libwbclient0:amd64.
Preparing to unpack .../11-libwbclient0_2%3a4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package samba-libs:amd64.
Preparing to unpack .../12-samba-libs_2%3a4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package python3-talloc:amd64.
Preparing to unpack .../13-python3-talloc_2.4.0-f2_amd64.deb ...
Unpacking python3-talloc:amd64 (2.4.0-f2) ...
Selecting previously unselected package python3-samba.
Preparing to unpack .../14-python3-samba_2%3a4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking python3-samba (2:4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package samba-common.
Preparing to unpack .../15-samba-common_2%3a4.17.12+dfsg-0+deb12u3_all.deb ...
Unpacking samba-common (2:4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package libcups2:amd64.
Preparing to unpack .../16-libcups2_2.4.2-3+deb12u9_amd64.deb ...
Unpacking libcups2:amd64 (2.4.2-3+deb12u9) ...
Selecting previously unselected package libncurses6:amd64.
Preparing to unpack .../17-libncurses6_6.4-4_amd64.deb ...
Unpacking libncurses6:amd64 (6.4-4) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../18-samba-common-bin_2%3a4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking samba-common-bin (2:4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../19-tdb-tools_1.4.8-2_amd64.deb ...
Unpacking tdb-tools (1.4.8-2) ...
Selecting previously unselected package samba.
Preparing to unpack .../20-samba_2%3a4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking samba (2:4.17.12+dfsg-0+deb12u3) ...
Preparing to unpack .../21-gpgv_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gpgv (2.2.40-1.1+deb12u2) over (2.2.40-1.1+deb12u1) ...
Setting up gpgv (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package attr.
(Reading database ... 35619 files and directories currently installed.)
Preparing to unpack .../00-attr_1%3a2.5.1-4_amd64.deb ...
Unpacking attr (1:2.5.1-4) ...
Selecting previously unselected package libassuan0:amd64.
Preparing to unpack .../01-libassuan0_2.5.5-5_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.5-5) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../02-gpgconf_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gpgconf (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../03-libksba8_1.6.3-2_amd64.deb ...
Unpacking libksba8:amd64 (1.6.3-2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../04-libnpth0_1.6-3_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-3) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../05-dirmngr_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking dirmngr (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../06-gnupg-l10n_2.2.40-1.1+deb12u2_all.deb ...
Unpacking gnupg-l10n (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../07-gnupg-utils_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gnupg-utils (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package gpg.
Preparing to unpack .../08-gpg_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gpg (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../09-pinentry-curses_1.2.1-1_amd64.deb ...
Unpacking pinentry-curses (1.2.1-1) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../10-gpg-agent_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gpg-agent (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../11-gpg-wks-client_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gpg-wks-client (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../12-gpg-wks-server_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gpg-wks-server (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../13-gpgsm_2.2.40-1.1+deb12u2_amd64.deb ...
Unpacking gpgsm (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../14-gnupg_2.2.40-1.1+deb12u2_all.deb ...
Unpacking gnupg (2.2.40-1.1+deb12u2) ...
Selecting previously unselected package libibverbs1:amd64.
Preparing to unpack .../15-libibverbs1_44.0-2_amd64.deb ...
Unpacking libibverbs1:amd64 (44.0-2) ...
Selecting previously unselected package ibverbs-providers:amd64.
Preparing to unpack .../16-ibverbs-providers_44.0-2_amd64.deb ...
Unpacking ibverbs-providers:amd64 (44.0-2) ...
Selecting previously unselected package libboost-iostreams1.74.0:amd64.
Preparing to unpack .../17-libboost-iostreams1.74.0_1.74.0+ds1-21_amd64.deb ...
Unpacking libboost-iostreams1.74.0:amd64 (1.74.0+ds1-21) ...
Selecting previously unselected package libboost-thread1.74.0:amd64.
Preparing to unpack .../18-libboost-thread1.74.0_1.74.0+ds1-21_amd64.deb ...
Unpacking libboost-thread1.74.0:amd64 (1.74.0+ds1-21) ...
Selecting previously unselected package libfmt9:amd64.
Preparing to unpack .../19-libfmt9_9.1.0+ds1-2_amd64.deb ...
Unpacking libfmt9:amd64 (9.1.0+ds1-2) ...
Selecting previously unselected package librdmacm1:amd64.
Preparing to unpack .../20-librdmacm1_44.0-2_amd64.deb ...
Unpacking librdmacm1:amd64 (44.0-2) ...
Selecting previously unselected package librados2.
Preparing to unpack .../21-librados2_16.2.15+ds-0+deb12u1_amd64.deb ...
Unpacking librados2 (16.2.15+ds-0+deb12u1) ...
Selecting previously unselected package libcephfs2.
Preparing to unpack .../22-libcephfs2_16.2.15+ds-0+deb12u1_amd64.deb ...
Unpacking libcephfs2 (16.2.15+ds-0+deb12u1) ...
Selecting previously unselected package libgfxdr0:amd64.
Preparing to unpack .../23-libgfxdr0_10.3-5_amd64.deb ...
Unpacking libgfxdr0:amd64 (10.3-5) ...
Selecting previously unselected package libglusterfs0:amd64.
Preparing to unpack .../24-libglusterfs0_10.3-5_amd64.deb ...
Unpacking libglusterfs0:amd64 (10.3-5) ...
Selecting previously unselected package libgfrpc0:amd64.
Preparing to unpack .../25-libgfrpc0_10.3-5_amd64.deb ...
Unpacking libgfrpc0:amd64 (10.3-5) ...
Selecting previously unselected package libgfapi0:amd64.
Preparing to unpack .../26-libgfapi0_10.3-5_amd64.deb ...
Unpacking libgfapi0:amd64 (10.3-5) ...
Selecting previously unselected package libgpgme11:amd64.
Preparing to unpack .../27-libgpgme11_1.18.0-3+b1_amd64.deb ...
Unpacking libgpgme11:amd64 (1.18.0-3+b1) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../28-libgpm2_1.20.7-10+b1_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-10+b1) ...
Selecting previously unselected package liburing2:amd64.
Preparing to unpack .../29-liburing2_2.3-3_amd64.deb ...
Unpacking liburing2:amd64 (2.3-3) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../30-libyaml-0-2_0.2.5-1_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.2.5-1) ...
Selecting previously unselected package python3-sniffio.
Preparing to unpack .../31-python3-sniffio_1.2.0-1_all.deb ...
Unpacking python3-sniffio (1.2.0-1) ...
Selecting previously unselected package python3-anyio.
Preparing to unpack .../32-python3-anyio_3.6.2-1_all.deb ...
Unpacking python3-anyio (3.6.2-1) ...
Selecting previously unselected package python3-cffi-backend:amd64.
Preparing to unpack .../33-python3-cffi-backend_1.15.1-5+b1_amd64.deb ...
Unpacking python3-cffi-backend:amd64 (1.15.1-5+b1) ...
Selecting previously unselected package python3-colorama.
Preparing to unpack .../34-python3-colorama_0.4.6-2_all.deb ...
Unpacking python3-colorama (0.4.6-2) ...
Selecting previously unselected package python3-click.
Preparing to unpack .../35-python3-click_8.1.3-2_all.deb ...
Unpacking python3-click (8.1.3-2) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../36-python3-cryptography_38.0.4-3+deb12u1_amd64.deb ...
Unpacking python3-cryptography (38.0.4-3+deb12u1) ...
Selecting previously unselected package python3-gpg.
Preparing to unpack .../37-python3-gpg_1.18.0-3+b1_amd64.deb ...
Unpacking python3-gpg (1.18.0-3+b1) ...
Selecting previously unselected package python3-h11.
Preparing to unpack .../38-python3-h11_0.14.0-1.1~deb12u1_all.deb ...
Unpacking python3-h11 (0.14.0-1.1~deb12u1) ...
Selecting previously unselected package python3-hpack.
Preparing to unpack .../39-python3-hpack_4.0.0-2_all.deb ...
Unpacking python3-hpack (4.0.0-2) ...
Selecting previously unselected package python3-hyperframe.
Preparing to unpack .../40-python3-hyperframe_6.0.0-1_all.deb ...
Unpacking python3-hyperframe (6.0.0-1) ...
Selecting previously unselected package python3-h2.
Preparing to unpack .../41-python3-h2_4.1.0-4_all.deb ...
Unpacking python3-h2 (4.1.0-4) ...
Selecting previously unselected package python3-httpcore.
Preparing to unpack .../42-python3-httpcore_0.16.3-1_all.deb ...
Unpacking python3-httpcore (0.16.3-1) ...
Selecting previously unselected package python3-pygments.
Preparing to unpack .../43-python3-pygments_2.14.0+dfsg-1_all.deb ...
Unpacking python3-pygments (2.14.0+dfsg-1) ...
Selecting previously unselected package python3-mdurl.
Preparing to unpack .../44-python3-mdurl_0.1.2-1_all.deb ...
Unpacking python3-mdurl (0.1.2-1) ...
Selecting previously unselected package python3-markdown-it.
Preparing to unpack .../45-python3-markdown-it_2.1.0-5_all.deb ...
Unpacking python3-markdown-it (2.1.0-5) ...
Selecting previously unselected package python3-rich.
Preparing to unpack .../46-python3-rich_13.3.1-1_all.deb ...
Unpacking python3-rich (13.3.1-1) ...
Selecting previously unselected package python3-rfc3986.
Preparing to unpack .../47-python3-rfc3986_1.5.0-2_all.deb ...
Unpacking python3-rfc3986 (1.5.0-2) ...
Selecting previously unselected package python3-httpx.
Preparing to unpack .../48-python3-httpx_0.23.3-1_all.deb ...
Unpacking python3-httpx (0.23.3-1) ...
Selecting previously unselected package python3-markdown.
Preparing to unpack .../49-python3-markdown_3.4.1-2_all.deb ...
Unpacking python3-markdown (3.4.1-2) ...
Selecting previously unselected package python3-requests-toolbelt.
Preparing to unpack .../50-python3-requests-toolbelt_0.10.1-1_all.deb ...
Unpacking python3-requests-toolbelt (0.10.1-1) ...
Selecting previously unselected package python3-yaml.
Preparing to unpack .../51-python3-yaml_6.0-3+b2_amd64.deb ...
Unpacking python3-yaml (6.0-3+b2) ...
Selecting previously unselected package samba-ad-provision.
Preparing to unpack .../52-samba-ad-provision_2%3a4.17.12+dfsg-0+deb12u3_all.deb ...
Unpacking samba-ad-provision (2:4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package samba-dsdb-modules:amd64.
Preparing to unpack .../53-samba-dsdb-modules_2%3a4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking samba-dsdb-modules:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Selecting previously unselected package samba-vfs-modules:amd64.
Preparing to unpack .../54-samba-vfs-modules_2%3a4.17.12+dfsg-0+deb12u3_amd64.deb ...
Unpacking samba-vfs-modules:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Setting up libksba8:amd64 (1.6.3-2) ...
Setting up python3-sniffio (1.2.0-1) ...
Setting up libibverbs1:amd64 (44.0-2) ...
Setting up libgpm2:amd64 (1.20.7-10+b1) ...
Setting up python3-requests-toolbelt (0.10.1-1) ...
Setting up libpython3.11:amd64 (3.11.2-6+deb12u6) ...
Setting up python3-anyio (3.6.2-1) ...
Setting up python3-hyperframe (6.0.0-1) ...
Setting up ibverbs-providers:amd64 (44.0-2) ...
Setting up python3-hpack (4.0.0-2) ...
Setting up python3-colorama (0.4.6-2) ...
Setting up attr (1:2.5.1-4) ...
Setting up libyaml-0-2:amd64 (0.2.5-1) ...
Setting up libboost-iostreams1.74.0:amd64 (1.74.0+ds1-21) ...
Setting up libtdb1:amd64 (1.4.8-2) ...
Setting up python3-yaml (6.0-3+b2) ...
Setting up libnpth0:amd64 (1.6-3) ...
Setting up samba-common (2:4.17.12+dfsg-0+deb12u3) ...
locale: Cannot set LC_ALL to default locale: No such file or directory

Creating config file /etc/samba/smb.conf with new version
Setting up libassuan0:amd64 (2.5.5-5) ...
Setting up python3-click (8.1.3-2) ...
Setting up libwbclient0:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Setting up libtalloc2:amd64 (2.4.0-f2) ...
Setting up libglusterfs0:amd64 (10.3-5) ...
Setting up python3-tdb (1.4.8-2) ...
Setting up python3-pygments (2.14.0+dfsg-1) ...
Setting up python3-rfc3986 (1.5.0-2) ...
Setting up libtevent0:amd64 (0.14.1-1) ...
Setting up gnupg-l10n (2.2.40-1.1+deb12u2) ...
Setting up libavahi-common-data:amd64 (0.8-10+deb12u1) ...
Setting up libncurses6:amd64 (6.4-4) ...
Setting up tdb-tools (1.4.8-2) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up python3-mdurl (0.1.2-1) ...
Setting up python3-markdown (3.4.1-2) ...
Setting up python3-h11 (0.14.0-1.1~deb12u1) ...
Setting up libfmt9:amd64 (9.1.0+ds1-2) ...
Setting up python3-markdown-it (2.1.0-5) ...
Setting up python3-dnspython (2.3.0-1) ...
Setting up gpgconf (2.2.40-1.1+deb12u2) ...
Setting up samba-ad-provision (2:4.17.12+dfsg-0+deb12u3) ...
Setting up python3-h2 (4.1.0-4) ...
Setting up liburing2:amd64 (2.3-3) ...
Setting up libldb2:amd64 (2:2.6.2+samba4.17.12+dfsg-0+deb12u3) ...
Setting up gpg (2.2.40-1.1+deb12u2) ...
Setting up python3-cffi-backend:amd64 (1.15.1-5+b1) ...
Setting up libgfxdr0:amd64 (10.3-5) ...
Setting up libboost-thread1.74.0:amd64 (1.74.0+ds1-21) ...
Setting up gnupg-utils (2.2.40-1.1+deb12u2) ...
Setting up pinentry-curses (1.2.1-1) ...
Setting up python3-httpcore (0.16.3-1) ...
Setting up librdmacm1:amd64 (44.0-2) ...
Setting up librados2 (16.2.15+ds-0+deb12u1) ...
Setting up gpg-agent (2.2.40-1.1+deb12u2) ...
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket → /usr/lib/systemd/user/gpg-agent-browser.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket → /usr/lib/systemd/user/gpg-agent-extra.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket → /usr/lib/systemd/user/gpg-agent-ssh.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent.socket → /usr/lib/systemd/user/gpg-agent.socket.
Setting up python3-rich (13.3.1-1) ...
Setting up python3-talloc:amd64 (2.4.0-f2) ...
Setting up gpgsm (2.2.40-1.1+deb12u2) ...
Setting up libavahi-common3:amd64 (0.8-10+deb12u1) ...
Setting up libgpgme11:amd64 (1.18.0-3+b1) ...
Setting up libcephfs2 (16.2.15+ds-0+deb12u1) ...
Setting up dirmngr (2.2.40-1.1+deb12u2) ...
Created symlink /etc/systemd/user/sockets.target.wants/dirmngr.socket → /usr/lib/systemd/user/dirmngr.socket.
Setting up python3-httpx (0.23.3-1) ...
Setting up python3-gpg (1.18.0-3+b1) ...
Setting up python3-cryptography (38.0.4-3+deb12u1) ...
Setting up python3-ldb (2:2.6.2+samba4.17.12+dfsg-0+deb12u3) ...
Setting up gpg-wks-server (2.2.40-1.1+deb12u2) ...
Setting up libgfrpc0:amd64 (10.3-5) ...
Setting up libavahi-client3:amd64 (0.8-10+deb12u1) ...
Setting up gpg-wks-client (2.2.40-1.1+deb12u2) ...
Setting up samba-libs:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Setting up libgfapi0:amd64 (10.3-5) ...
Setting up libcups2:amd64 (2.4.2-3+deb12u9) ...
Setting up gnupg (2.2.40-1.1+deb12u2) ...
Setting up samba-dsdb-modules:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Setting up python3-samba (2:4.17.12+dfsg-0+deb12u3) ...
Setting up samba-vfs-modules:amd64 (2:4.17.12+dfsg-0+deb12u3) ...
Setting up samba-common-bin (2:4.17.12+dfsg-0+deb12u3) ...
Setting up samba (2:4.17.12+dfsg-0+deb12u3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/samba-ad-dc.service → /lib/systemd/system/samba-ad-dc.service.
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u13) ...

Ara crearem la carpeta la qual configurarem dintre de l’arxiu de configuració perquè sigui la carpeta compartida, i també li donarem els permisos. 

sudo mkdir -p /srv/samba/compartido
sudo chmod 777 /srv/samba/compartido
sudo chown -R nobody:nogroup /srv/samba/compartido

Per continuar entrarem a l’archiu de configuracio del servei 

sudo vi /etc/samba/smb.conf

I una vegada dintre al final de l’arxiu afegirem aquestes línies modificades pel que tu necessitis. 

[carpeta_compartida] 
   comment = Carpeta compartida
   path = /srv/samba/compartido
   browseable = yes
   read only = no
   guest ok = no
   valid users = vagrant
Arxiu complert
#======================= Global Settings =======================

[global]
   workgroup = grup3

#### Debugging/Accounting ####

   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d

####### Authentication #######

   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

############ Misc ############
   
usershare allow guests = yes

#======================= Share Definitions =======================

[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S

[printers]
   comment = All Printers
   browseable = no
   path = /var/tmp
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

[documents]
   comment = Carpeta compartida de grup3
   path = /srv/samba/compartido
   browseable = yes
   read only = no
   guest ok = no
   valid users = @vagrant

Per fer una comprovació que ha funcionat, farem tecla Windows+r, i en programa que se’ns obre posarem \\ i la IP de la nostra màquina en el nostre cas quedaria \\192.168.100.134, i pressionarem intró, i ja se’ns obrirà la carpeta compartida que es guardarà en el Debian.