Installation and configuration of the service

sudo smbpasswd -a vagrantIn order to share files between project teams, we have installed and configured the service Samba on the server. This service allows us to share local folders so that other computers on the network can access them with the corresponding permissions.

Installing the Samba package

First, we installed the package using the system package manager:

sudo dnf install samba -y

After installing, we activated and started the service:

sudo systemctl enable smb

sudo systemctl start smb

Creating the shared folder

We have created the folder /usr/share/summary and we copied the files to share there. This folder is shared via Samba with the name ResourcesSintesi.

The folder permissions have been set to 750, the owner is root and the assigned group is equip_it:

sudo chown root:equip_it /usr/share/sintesi

sudo chmod 750 /usr/share/sintesy

Group and users

The group has been created equip_it and the following users have been added: vagrant, alex, angel i brayan.

sudo groupadd equip_it

sudo usermod -aG equip_it vagrant

sudo usermod -aG equip_it alex

sudo usermod -aG equip_it aniol

sudo usermod -aG equip_it brayan

Samba configuration

The configuration file has been edited /etc/samba/smb.conf and the following section has been added:

[SintesiResources]

path = /usr/share/synthesis

comment = .rpm packages for local installation

valid users = @equip_it

read only = yes

browsable = yes

After editing, restarted the service:
sudo systemctl restart smb

Also created a Samba password for each user example with vagrant:

Esta web utiliza cookies propias y de terceros para su correcto funcionamiento y para fines analíticos. Contiene enlaces a sitios web de terceros con políticas de privacidad ajenas que podrás aceptar o no cuando accedas a ellos. Al hacer clic en el botón Aceptar, acepta el uso de estas tecnologías y el procesamiento de tus datos para estos propósitos.
Privacidad