![중복된 삼바 공유 폴더를 삭제하는 방법은 무엇입니까?](https://linux55.com/image/115480/%EC%A4%91%EB%B3%B5%EB%90%9C%20%EC%82%BC%EB%B0%94%20%EA%B3%B5%EC%9C%A0%20%ED%8F%B4%EB%8D%94%EB%A5%BC%20%EC%82%AD%EC%A0%9C%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
나는 팔로우한다이 튜토리얼Virtualbox의 CentOS 7에서 Samba 서비스를 활성화하지만 두 개의 동일한 공유 폴더가 생성되며 유일한 차이점은 이름입니다.
이것은 내 samba.conf입니다.
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = dev
security = user
map to guest = bad user
dns proxy = no
unix charset = UTF-8
dos charset = CP932
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = root
create mask = 0664
directory mask = 0775
[secured]
path = /var/www/html
valid users = @apache
guest ok = no
writable = yes
browsable = yes
공유 폴더 " secured
"가 있다고 가정해 보겠습니다. 왜 " "인지 모르겠습니다 apache
. 둘 다 동일한 주소 "/var/www/html"에 연결되어 있습니다. 제안 사항이 있습니까?
답변1
나는 이것이 공유 폴더에 Samba 사용자의 홈 디렉토리를 자동으로 생성하는 홈 부분이라는 것을 알았습니다. /var/www/html은 내 Apache 사용자의 홈 디렉토리이므로 중복이 생성됩니다.
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes