-----------------------------------
Samba によるファイルサーバーの構築 [root@falcon21 ~]# dnf -y install samba インストール済み: samba-4.11.2-13.el8.x86_64 samba-common-tools-4.11.2-13.el8.x86_64 samba-libs-4.11.2-13.el8.x86_64 完了しました! [root@falcon21 ~]# mv /etc/samba/smb.conf /etc/samba/smb.conf_org [root@falcon21 ~]# vi /etc/samba/smb.conf 1 [global] 2 unix charset = UTF-8 3 dos charset = CP932 4 mangled names = no 5 vfs objects = catia 6 catia:mappings = 0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6 7 hosts allow = 192.168.10. 127. 192.168.2. 192.168.1. 8 workgroup = FALCON1 9 server string = Samba Server %v 10 netbios name = centos7 11 security = user 12 map to guest = bad user 13 dns proxy = no 14 #========================================================== 15 [public] 16 comment = Public Stuff 17 path = /home/samba 18 public = yes 19 writable = yes 20 only guest = yes 21 vfs objects = recycle 22 recycle:repository = .recycle 23 recycle:keeptree = no 24 recycle:versions = yes 25 recycle:touch = no 26 recycle:maxsize = 0 27 recycle:exclude = *.tmp ~$* 28 #[Share] 29 #path = /home/share/ 30 #browsable =yes 31 ##writable = yes 32 #guest ok = yes 33 #read only = no 34 [Share] 35 path = / 36 browsable =yes 37 writable = yes 38 guest ok = yes 39 read only = no 40 41 ~ ~ [root@falcon21 ~]# systemctl enable --now smb Created symlink /etc/systemd/system/multi-user.target.wants/smb.service → /usr/lib/systemd/system/smb.service. [root@falcon21 ~]# systemctl status smb ● smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2020-11-19 23:52:53 JST; 20s ago Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Main PID: 7927 (smbd) Status: "smbd: ready to serve connections..." Tasks: 4 (limit: 48971) Memory: 15.6M CGroup: /system.slice/smb.service ├─7927 /usr/sbin/smbd --foreground --no-process-group ├─7929 /usr/sbin/smbd --foreground --no-process-group ├─7930 /usr/sbin/smbd --foreground --no-process-group └─7931 /usr/sbin/smbd --foreground --no-process-group 11月 19 23:52:52 falcon21.space systemd[1]: Starting Samba SMB Daemon... 11月 19 23:52:53 falcon21.space smbd[7927]: [2020/11/19 23:52:53.584380, 0] ../../lib/util> 11月 19 23:52:53 falcon21.space systemd[1]: Started Samba SMB Daemon. 11月 19 23:52:53 falcon21.space smbd[7927]: daemon_ready: daemon 'smbd' finished starting> lines 1-20/20 (END) windows 「ファイル名を指定して実行」\\192.168.10.3\Share
投票数:0
平均点:0.00