I’m trying to share my old windows game drive samba. i followed this tutorial trying to set up a share, but i keep getting the net usershare 255 error
Here is my smb.conf
[global]
mangled names = no
dos charset = CP850
unix charset = UTF-8
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client min protocol = SMB2
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
show add printer wizard = 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
sudo systemctl status smb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor prese>
Active: active (running) since Fri 2021-10-29 17:35:09 +0545; 1h 1min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 987 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 3 (limit: 19134)
Memory: 13.0M
CPU: 111ms
CGroup: /system.slice/smb.service
├─987 /usr/bin/smbd --foreground --no-process-group
├─989 /usr/bin/smbd --foreground --no-process-group
└─990 /usr/bin/smbd --foreground --no-process-group
Oct 29 17:35:09 mamba-1 systemd[1]: Starting Samba SMB Daemon...
Oct 29 17:35:09 mamba-1 smbd[987]: [2021/10/29 17:35:09.772666, 0] ../../sourc>
Oct 29 17:35:09 mamba-1 smbd[987]: smbd version 4.15.0 started.
Oct 29 17:35:09 mamba-1 smbd[987]: Copyright Andrew Tridgell and the Samba Te>
Oct 29 17:35:09 mamba-1 systemd[1]: Started Samba SMB Daemon.
and
sudo systemctl status nmb.service
nmb.service - Samba NMB Daemon
Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor prese>
Active: active (running) since Fri 2021-10-29 17:35:09 +0545; 1h 3min ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 986 (nmbd)
Status: "nmbd: ready to serve connections..."
Tasks: 1 (limit: 19134)
Memory: 12.1M
CPU: 152ms
CGroup: /system.slice/nmb.service
└─986 /usr/bin/nmbd --foreground --no-process-group
Oct 29 17:35:32 mamba-1 nmbd[986]:
Oct 29 17:35:32 mamba-1 nmbd[986]: Samba name server MAMBA-1 is now a local m>
Oct 29 17:35:32 mamba-1 nmbd[986]:
Oct 29 17:35:32 mamba-1 nmbd[986]: *****
Oct 29 17:35:32 mamba-1 nmbd[986]: [2021/10/29 17:35:32.712871, 0] ../../sourc>
Oct 29 17:35:32 mamba-1 nmbd[986]: *****
Oct 29 17:35:32 mamba-1 nmbd[986]:
Oct 29 17:35:32 mamba-1 nmbd[986]: Samba name server MAMBA-1 is now a local m>
Oct 29 17:35:32 mamba-1 nmbd[986]:
What might the problem be? No files will share regardless . It always error 255.