wanted to share a folder.
Installed Nemo-share.
Clicked to share folder but got an error :
Code: Select all
>net usershare< returned the error 255 :
net usershare add: cannot convert name 'Everyone' to a SID.
The transportconnection attempt was refused by the remote system.
Maybe smbd is not running.
samba -i returns :
Code: Select all
pidfile_create: ERROR: Failed to create PID file /run/samba/samba.pid (Permission denied)
I added : force group = +sambashare to /etc/samba/smb.conf but no effect.
/etc/samba/smb.conf :
Code: Select all
[global]
workgroup = WORKGROUP
netbios name = X270
security = user
client min protocol = NT1
client max protocol = SMB2
server min protocol = NT1
server max protocol = SMB2
force group = +sambashare
hosts allow = 192.168.2. localhost
interfaces = 192.168.2.0/24
bind interfaces only = yes
remote announce = 192.168.2.255
remote browse sync = 192.168.2.255
server role = standalone server
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
map to guest = Bad Password
[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
Thanks a lot !!