Helber
@Helber

Как скрыть домашнюю папку из шары samba?

Почему видна домашняя папка пользователя в smb шаре при homes browseable = no?
$ cat /etc/samba/smb.conf

[global]


;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0


;   bind interfaces only = yes



   server role = standalone server

   passdb backend = tdbsam

   obey pam restrictions = yes

   unix password sync = yes

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

   pam password change = yes

   map to guest = bad user

;   logon path = \\%N\profiles\%U
;   logon drive = H:
;   logon script = logon.cmd

; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

; add group script = /usr/sbin/addgroup --force-badname %g

;   include = /home/samba/etc/smb.conf.%m

;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

;   usershare max shares = 100



[homes]
   comment = Home Directories
   browseable = no

;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
;   write list = root, @lpadmin
l,,,


[Share]
  comment = Public Folder
  path = /home/pi/share
  public = yes
  writable = yes
  read only = no
  guest ok = yes
  create mask = 0755
  directory mask = 0755

[US]
  comment = Public Folder
  path = /home/pi/mnt/hdd/US
  public = yes
  writable = yes
  read only = no
  guest ok = no
  create mask = 0755
  directory mask = 0755
  • Вопрос задан
  • 1504 просмотра
Пригласить эксперта
Ответы на вопрос 2
@antonsr98
Системный Администратор
show hidden files\folders в проводнике включено?
Ответ написан
InfSub
@InfSub
закоментируйте весь блок: [homes] и перезапустите самбу
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы