Я использую три или четыре папки в своей сети, но после обновления до 20.04 я не могу создавать новые. . При попытке я получаю сообщение об ошибке
«net usershare» вернула ошибку 255: net usershare add: невозможно преобразовать имя «Все» в SID. > Указана недопустимая комбинация параметров ..
Существующие акции по-прежнему доступны.
Я пробовал исправление, данное здесь , но данная строка уже есть в моем файле /etc/samba/smb.conf.
Изменить: ввод net usershare info --long дает следующее:
[C&L Docs]
path = / home / laurie / Sync / C & L Документы
comment =
usershare_acl = S-1-1-0: F,
guest_ok = y
Ввод testparm дает:
Загрузить файлы конфигурации smb из / etc /samba/smb.conf Загруженный файл служб в порядке. Роль сервера: ROLE_STANDALONE
Нажмите клавишу ВВОД, чтобы просмотреть дамп определений служб
Глобальные параметры
{{1} }[global]
client max protocol = NT1
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
name resolve order = bcast host lmhosts wins
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
I can reproduce your error. You created a paradox.
client max protocol = NT1
Samba disables NT1 on the server side of your install yet you specify the maximum protocol the client can use to NT1. Ain't gonna happen.
I'm almost certain you meant to add this in smb.conf:
client min protocol = NT1
If I do that and restart smbd: sudo service smbd restart
I can create the share without the error message.