Samba what am I doing wrong?

Soldato
Joined
19 Oct 2002
Posts
6,831
Location
Bath
I have a Hyper-V Debian server running my pihole and want to make better use of the server, so I decided to see how well I could share from and to it, so following This guide I installed samba and set it up exactly as per the guide but I get the following error when I do /etc/init.d/samba status

jingo.jpg


Any Idea what I've done wrong or what I need to change?

Thanks.
 
Soldato
OP
Joined
19 Oct 2002
Posts
6,831
Location
Bath
The SMB.conf is fine checked before starting services and it's all good, started the services independently and they work as they should, but I still cannot access the share, will post my conf in a sec.
 
Soldato
OP
Joined
19 Oct 2002
Posts
6,831
Location
Bath
smb.conf is as follows
Code:
[global]
workgroup = REGIMENT
server role = standalone server

[homes]
comment = Home Directories
browsable = yes
writable = yes

[public]
path = /media/storage/
public = yes
writable = yes
comment = Linux Share
printable = no
only guest = yes

Permissions for /media/storage/ are 777
 
Soldato
OP
Joined
19 Oct 2002
Posts
6,831
Location
Bath
On my share I have the following:

[storage]
path = /storage
browsable =yes
writable = yes
guest ok = yes
public = yes
read only = no
create mask = 0777
directory mask = 0777
force user = raymond
force group = raymond

The shared folder is /storage (obviously) it's owner is raymond:raymond and permissions are 777.

This requires that I enter the credentials for raymond the first time I access the share from Windows but everything just works after that.
Thanks will try similar conf later off to work now.
 
Soldato
OP
Joined
19 Oct 2002
Posts
6,831
Location
Bath
Ok so I removed samba and reinstalled via apt-get and built a new conf using the advice here and it works straight away! dunno what was going on before tbh, just need a cron now to activate samba every time it boots.
 
Back
Top Bottom