Samba ошибка при попытке открыть общий доступ ‘net usershare’ returned error 255

samba

#1

Когда я пытаюсь открыть доступ к папке с помощью Thunar вылетает ошибка:

’net usershare’ returned error 255: net usershare add: cannot convert name “Everyone” to a SID. {Access Denied} A process has requested access to an object but has not been granted those access rights…

Мой файл настройки /etc/samba/smb.conf выглядит следующим образом:

[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client max protocol = NT1
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = NewUNIXpassword %n\n ReTypenewUNIXpassword* %n\n passwd:allauthenticationtokensupdatedsuccessfully*
pam password change = yes
name resolve order = lmhosts bcast host wins
security = user
map to guest = bad user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
usershare allow guests = yes
group = sambashare
force create mode = 0070
force directory mode = 0070
server multi channel support = yes
socket options = IPTOS_THROUGHPUT SO_KEEPALIVE
deadtime = 30
use sendfile = Yes
write cache size = 262144
min receivefile size = 16384
aio read size = 16384
aio write size = 16384
load printers = no

[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S

[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


#2

Изменить настройки:
group = sambashare на force group = +sambashare
map to guest = bad user на map to guest = bad password


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.