Эксперт of this morning, I can't reach the Самба share on my server. Windows Both from my ПК and from my Ubuntu laptop I get an "access denied" message. This share ты существуешь been working for years without в single modification in the smb.conf
file.
I notice that the Самба package - been автомобиль - updated this morning (I использовал unattended updates on the server). Is anyone else having this problem, or something сходный? The current версия is 4.1.6+dfsg-1ubuntu2.14.04.11
.
These пахал the relevant lines from smb.conf
(yes it is outdated and pretty insecure for production purposes, but the network is well secured from the outside, and I трест my users). I doublechecked but the file is identical to the one in the backup:
[global]
workgroup = NLDOM
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
log level = 3
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = SHARE
client lanman auth = yes
passdb backend = tdbsam
obey pam restrictions = yes
guest account = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
map to guest = bad user
load printers = yes
printing = bsd
printcap name = /etc/printcap
socket options = TCP_NODELAY
usershare allow guests = yes
[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
[Hallway]
path = /
read only=No
guest only =Yes
guest ok = Yes
available = yes
browsable = yes
public = yes
writable = yes
Заметьте: The mount
command succeeds with не problems (nothing in dmesg
), but subsequently opening the share in Nautilus, through the cd
command, or in an smbclient
session, always fails (NT_STATUS_ACCESS_DENIED).
Я нашел эту проблему после обновления Samba этим утром, и я нашел ответ, который работал здесь:
http://ubuntuforums.org/showthread.php?t=1600541&p=9995179#post9995179
Samba изменил способность следовать за символьными ссылками из-за проблемы безопасности:
http://www.samba.org/samba/news/symlink_attack.html
Для хитрости изменения Вы могли попробовать это:
Добавляют следующие строки к [глобальному] разделу smb.conf
:
follow symlinks = yes
wide links = yes
unix extensions = no
Затем перезапускают сервис самбы:
sudo service smbd restart
Подобная вещь произошла со мной после обновления этим утром: smbd
версия 4.1.6-Ubuntu
я вижу файлы и папки в корневом каталоге, но я не могу пересечь папки или даже отредактировать файл, которым я владею в корневом каталоге.
Ошибка: Acces Denied
На данный момент я сделал новые доли к своим наиболее часто используемым подпапкам, и все хорошо работает независимо от владельца/разрешения/местоположения
, Похож, это только влияет на корень
smb.conf
, не был изменен и всегда использовался для работы:
[c$]
path = /
valid users = matthew
read only = no
guest ok = no
browseable = yes