...
코드 블럭 |
---|
language | bash |
---|
theme | Emacs |
---|
linenumbers | true |
---|
|
sudo mkdir /ISOs
chmod 777 /ISOs
cd /ISOs
wget http://ftp.kaist.ac.kr/CentOS/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-minimal.iso
wget http://ftp.kaist.ac.kr/ubuntu-cd/20.10/ubuntu-20.10-desktop-amd64.iso
wget http://ftp.kaist.ac.kr/ubuntu-cd/20.10/ubuntu-20.10-live-server-amd64.iso
...
sudo chown -R nobody:nobody /ISOs
sudo chmod 644 /ISOs/*.iso
sudo chcon -t samba_share_t /ISOs
sudo semanage fcontext -a -t samba_share_t /ISOs
sudo setsebool -P samba_export_all_rw on |
Change configs
코드 블럭 |
---|
language | text |
---|
theme | Emacs |
---|
title | /etc/samba/smb.conf |
---|
linenumbers | true |
---|
|
[global]
server min protocol = NT1
bind interfaces only = yes
interfaces = lo br0
workgroup = WORKGROUP
log level = 2
map to guest = Bad User
log file = /var/log/samba/log.%m
[ISOs]
path = /ISOs
public = yes
browsable = yes
read only = yes |
Change configsCheck status
코드 블럭 |
---|
language | text |
---|
theme | Emacs |
---|
title | /etc/samba/smb.conf |
---|
linenumbers | true |
---|
|
sudo systemctl status smb |
...