Code: Select all
'net usershare' returned error 255: mkdir failed on directory /var/run/samba/msg.lock: Permission denied
net usershare add: cannot convert name "Everyone" to a SID. The connection was refused. Maybe smbd is not running.
Code: Select all
>>> sudo service smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: active (exited) since Sat 2018-02-24 09:12:40 EST; 1h 10min ago
Docs: man:systemd-sysv-generator(8)
Process: 1168 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)
Feb 24 09:12:40 jenXPS13 systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
Feb 24 09:12:40 jenXPS13 systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
>>>
I notice that Samba is not installed by default. I am not married to doing things the old way. Here I am just trying to make the Public folder public, a place where local users can swap files.
And just because I saw this asked for in similar posts
Code: Select all
>>> testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
Code: Select all
>>> net usershare info --long
mkdir failed on directory /var/run/samba/msg.lock: Permission denied
>>> sudo net usershare info --long
[sudo] password for jennifer:
>>>