Hispanitat nº 7 Local C

08225, Terrassa (Barcelona)

+34 600 676 872

Soporte Técnico

Lunes-Viernes: 9:30 a 13:30 - 16:30 a 20:30

Sábados de 10h a 13:30

Por favor, o Registro para crear entradas y debates.

Instalacion y configuracion del samba

INSTALACIÓN DEL SAMBA

1. Primero entrar como admin "su"
2. dnf -y install samba
3. mkdir /home/share
4. chmod 777 /home/share
5. nano /etc/samba/smb.conf:

[global]
# line 11 : add (set charset)
unix charset = UTF-8
# change (Windows default)
workgroup = WORKGROUP
security = user
# add (IP addresses you allow to access)
hosts allow = 127. 10.0.0.
# add (no authentication)
map to guest = Bad User

.....
.....

# add to the end
# any Share name you like
[Share]
# specify shared directory
path = /home/share
# allow writing
writable = yes
# allow guest user (nobody)
guest ok = yes
# looks all as guest user
guest only = yes
# set permission [777] when file created
force create mode = 777
# set permission [777] when folder created
force directory mode = 777

6. systemctl enable --now smb
7. setsebool -P samba_enable_home_dirs on
8. restorecon -R /home/share
9. firewall-cmd --add-service=samba --permanent
10. firewall-cmd --reload

 

CONFIGURACIÓN DEL SAMBA

1. nano /etc/selinux/config
2. dnf -y install samba
3. mkdir /shared
4. chmod 777 /shared
5. chown -R nobody:nobody shared/
6. semanage fcontext -a -t samba_share_t /raid
7. semanage fcontext -a -t samba_share_t "/raid(/.*)?"
8. cd /etc/selinux/targeted/contexts/files/
restorecon -R -v /web
9. nano /etc/samba/smb.conf

[global]
# line 11 : add (set charset)
unix charset = UTF-8
# change (Windows default)
workgroup = WORKGROUP
security = user
# add (IP addresses you allow to access)
hosts allow = 127. 11.0.0.
# add (no authentication)
map to guest = Bad User

.....
.....

# add to the end
# any Share name you like
[Share]
# specify shared directory
path = /home/share
# allow writing
writable = yes
# allow guest user (nobody)
guest ok = yes
# looks all as guest user
guest only = yes
# set permission [777] when file created
force create mode = 777
# set permission [777] when folder created
force directory mode = 777

10. systemctl enable --now smb
11. setsebool -P samba_enable_home_dirs on
12. restorecon -R /shared
13. systemctl start smb nmb
14. systemctl enable smb nmb
15. firewall-cmd --add-service=samba --permanent
16. firewall-cmd --reload

WhatsApp chat