Menú
08225, Terrassa (Barcelona)
Soporte Técnico
Sábados a convenir
Cita de admin en 31 marzo, 2021, 1:09 pmINSTALACIÓ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 = 7776. 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 = 77710. 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
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
© Informàtica Can Boada All rights reserved