์ƒˆ์†Œ์‹

์ธ๊ธฐ ๊ฒ€์ƒ‰์–ด

๐Ÿ’ป Linux

CentOS7 Samba ์ด๊ธฐ์ข… ๊ณต์œ  ํด๋”

  • -
๋ฐ˜์‘ํ˜•
# window
D ๋“œ๋ผ์ด๋ธŒ ์ƒˆํด๋” wsamba > ์˜ค๋ฅธ์ชฝ ๋งˆ์šฐ์Šค > ์†์„ฑ > ๊ณต์œ  > everyone ์ถ”๊ฐ€ (์ฝ๊ธฐ์“ฐ๊ธฐ)
net user root 1234 /add # ์œ ์ € ์ถ”๊ฐ€

# window์—์„œ ๊ณต์œ  ํด๋” ํ™•์ธ
\\\\192.168.0.40

# CentOS7_Third > client
yum -y install samba-client
smbclient -L 192.168.0.40 # ์ž์‹ ์˜ IP
password : 1234

mkdir /mnt/wsamba # ๋งˆ์šดํŠธ ํฌ์ธํŠธ ์ƒ์„ฑ
mount -t cifs //192.168.0.40/wsamba /mnt/wsamba # // ๋งˆ์šดํŠธ ํ•˜๊ธฐ
password : 1234

cd /mnt/wsamba
touch aaa # ํŒŒ์ผ ๋งŒ๋“ค์–ด์„œ ํ™•์ธ

# CentOS7_First์—์„œ ๋‹ค์šด > Server
yum -y localinstall system-config-samba-1.2.100-2.fc20.noarch.rpm
mkdir /lsamba
chmod 707 /lsamba/
system-config-samba > ์„ค์ • > ์„œ๋ฒ„ ์„ค์ • : ์ž‘์—…๊ทธ๋ฃน - workgroup, ์„ค๋ช… - centos >
๋ฏธ๋“ฑ๋ก๋œ ์‚ฌ์šฉ์ž ๊ณ„์ • - centos > ์„ค์ • - samba์‚ฌ์šฉ์ž > ์‚ฌ์šฉ์ž ์ถ”๊ฐ€ > ์‚ฌ์šฉ์ž๋ช… centos
, window - winuser > ํŒŒ์ผ > ๊ณต์œ ์ถ”๊ฐ€ > ๊ณต์œ ํ•  ํด๋” ์„ค์ • : ์“ฐ๊ธฐ๊ฐ€๋Šฅ ๋ณด์ด๊ธฐ ์„ค์ •
>
systemctl restart smb
vim /etc/samba/smb.conf
	> 48 guest ok = yes
systemctl restart smb

systemctl stop firewalld
setenforce 0

smbstatus๋กœ ํŒŒ์ผ ํ™•์ธ ๊ฐ€๋Šฅ

window > client
๋‚ดpc > ์ปดํ“จํ„ฐ > ๋„คํŠธ์›Œํฌ ๋“œ๋ผ์ด๋ธŒ ์—ฐ๊ฒฐ > ๋“œ๋ผ์ด๋ธŒ L ์„ ํƒ > ํด๋” : \\\\192.168.111.100\\lsamba
> ๋กœ๊ทธ์ธํ•  ๋•Œ ๋‹ค์‹œ ์—ฐ๊ฒฐ : host - centos pass-1234

sysdm.cpl : ์‹œ์Šคํ…œ ์†์„ฑ

 

๋ฐ˜์‘ํ˜•

'๐Ÿ’ป Linux' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

CentOS7 DHCP ์ž๋™ ํ• ๋‹น, ์ˆ˜๋™ ํ• ๋‹น  (0) 2022.04.21
CentOS7 Samba Ubuntu Window  (0) 2022.04.21
CentOS7 NFS ๋ฆฌ๋ˆ…์Šค ์œˆ๋„์šฐ ๋งˆ์šดํŠธ  (0) 2022.04.20
CentOS7 NFS mount  (0) 2022.04.20
CentOS7 NFS mount  (0) 2022.04.20
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.