mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Samba problem with 10May16 release

Fri May 13, 2016 9:24 pm

I did an apt-get dist-upgrade as per blog instructions but now my Samba install doesn't work

A bit of googling suggests that this might be a month old Debian issue that has now been fixed.

has it not been fixed in Raspbian or do I have a different problem

i.e Is anyone running latest image able to use Samba?

Matthew

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: Samba problem with 10May16 release

Sun May 15, 2016 12:50 pm

So - this is just unique to me?

All you other Samba-isters are fine with new image/upgrade?

Matthew

User avatar
Dis93
Posts: 132
Joined: Thu Apr 07, 2016 8:30 pm
Location: Wuthering, Yorkshire

Re: Samba problem with 10May16 release

Sun May 15, 2016 12:53 pm

Sorry, mine just continued to work after the upgrade.
Maybe post your smb.conf file here?

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: Samba problem with 10May16 release

Sun May 15, 2016 1:00 pm

I can't because I can't access the file on my Pi from my PC because Samba is broke for me :)

I'll go and see what other methods there are to trasnfer it

The errror I'm gettting is

sudo service smbd restart
gives

Job for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details.

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: Samba problem with 10May16 release

Sun May 15, 2016 1:02 pm

Here it is

Code: Select all

#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
wide links = yes
unix extensions = no
dns proxy = no
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
map to guest = pi
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = yes
guest ok = yes
read only = no
create mask = 0775
directory mask = 0775
writeable = yes
guest account = pi
[root]
comment = Admin Config Share
path = /
browseable = yes
force user = root
force group = root
admin users = pi
writeable = yes
read only = no
guest ok = yes
create mask = 0777
directory mask = 0777

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: Samba problem with 10May16 release

Sun May 15, 2016 1:07 pm

Code: Select all

systemctl status smbd.service
gives

Code: Select all

\u25cf smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd)
   Active: failed (Result: exit-code) since Sun 2016-05-15 13:59:20 BST; 5min ago
  Process: 31614 ExecStop=/etc/init.d/smbd stop (code=exited, status=0/SUCCESS)
  Process: 27608 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)
pi@pi16gbsam ~ $ \u25cf smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
bash: syntax error near unexpected token `('
pi@pi16gbsam ~ $    Loaded: loaded (/etc/init.d/smbd)
bash: syntax error near unexpected token `('
pi@pi16gbsam ~ $    Active: failed (Result: exit-code) since Sun 2016-05-15 13:59:20 BST; 4min 4s ago
bash: syntax error near unexpected token `('
pi@pi16gbsam ~ $   Process: 31614 ExecStop=/etc/init.d/smbd stop (code=exited, status=0/SUCCESS)
bash: syntax error near unexpected token `('
pi@pi16gbsam ~ $   Process: 27608 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE

Code: Select all

journalctl -xn
gives

Code: Select all

No journal files were found.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Samba problem with 10May16 release

Sun May 15, 2016 1:12 pm

Use 'sudo' with the systemctl and journalctl commands.
It should give more information.

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: Samba problem with 10May16 release

Sun May 15, 2016 4:03 pm

I've played around with my smb.conf file (and rebooted several times just to apease the gremlins inside the machine) and I now seem to be back up and running

Code: Select all

#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
wide links = yes
unix extensions = no
dns proxy = no
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
security = user
map to guest = Bad User
guest account = pi
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = yes
guest ok = yes
read only = no
create mask = 0775
directory mask = 0775
writeable = yes
[root]
comment = Admin Config Share
path = /
browseable = yes
force user = root
force group = root
admin users = pi
writeable = yes
read only = no
guest ok = yes
create mask = 0777
directory mask = 0777
So I can now enjoy all the new goodies without losing out on a old one :)
Matthew

Return to “Raspberry Pi OS”