Samba error[SOLVED]

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Samba error[SOLVED]

Postby elsurubi » Sun Aug 02, 2015 5:31 am

Hi, sorry for my english

I have a Pogoplug E02 (pink one), last nigth, Samba stop working suddenly, my "glorious" idea was fix it doing a Pacman -Syu and now, the status of samba report this:

● smbd.service - Samba SMB/CIFS server
Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2015-08-02 02:04:35 ART; 10min ago
Process: 695 ExecStart=/usr/bin/smbd -D (code=exited, status=0/SUCCESS)
Main PID: 696 (smbd)
CGroup: /system.slice/smbd.service
└─696 /usr/bin/smbd -D

Aug 02 02:04:35 alarm systemd[1]: Starting Samba SMB/CIFS server...
Aug 02 02:04:35 alarm systemd[1]: smbd.service: PID file /var/run/smbd.pid not readable (yet?) after start: No such file or directory
Aug 02 02:04:35 alarm systemd[1]: Started Samba SMB/CIFS server.
Aug 02 02:04:36 alarm smbd[696]: [2015/08/02 02:04:36.106113, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Aug 02 02:04:36 alarm smbd[696]: STATUS=daemon 'smbd' finished starting up and ready to serve connections

● nmbd.service - Samba NetBIOS name server
Loaded: loaded (/usr/lib/systemd/system/nmbd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2015-08-02 02:04:35 ART; 10min ago
Process: 693 ExecStart=/usr/bin/nmbd -D (code=exited, status=0/SUCCESS)
Main PID: 694 (nmbd)
CGroup: /system.slice/nmbd.service
└─694 /usr/bin/nmbd -D

Aug 02 02:04:35 alarm systemd[1]: nmbd.service: PID file /var/run/nmbd.pid not readable (yet?) after start: No such file or directory
Aug 02 02:04:35 alarm systemd[1]: Started Samba NetBIOS name server.
Aug 02 02:04:35 alarm nmbd[694]: [2015/08/02 02:04:35.705226, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Aug 02 02:04:35 alarm nmbd[694]: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
Aug 02 02:04:58 alarm nmbd[694]: [2015/08/02 02:04:58.742824, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
Aug 02 02:04:58 alarm nmbd[694]: *****
Aug 02 02:04:58 alarm nmbd[694]:
Aug 02 02:04:58 alarm nmbd[694]: Samba name server POGOPLUG is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.50
Aug 02 02:04:58 alarm nmbd[694]:
Aug 02 02:04:58 alarm nmbd[694]: *****


thanks for your help !


EDIT:

command testparm return this parameters:

[global]
netbios name = POGOPLUG
server string = POGOPLUG
security = USER
map to guest = Bad User
guest account = root
log file = /var/log/samba/%m.log
max log size = 50
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
load printers = No
printcap name = /dev/null
disable spoolss = Yes
idmap config * : backend = tdb
use sendfile = Yes
write cache size = 2097152
printing = bsd

and this is the smb.conf edited with nano:

[global]
workgroup = WORKGROUP
server string = POGOPLUG
netbios name = POGOPLUG
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
write cache size = 2097152
use sendfile = yes

DA FUQ is idmap config * : backend = tdb ? why is not this line in smb.conf ?

thanks in advance
Last edited by elsurubi on Mon Aug 03, 2015 9:33 pm, edited 1 time in total.
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm

Re: Samba error

Postby elsurubi » Mon Aug 03, 2015 9:32 pm

ok, SOLVED in this UGLY way:

edited smb.conf (added this line)

# idmap config * : backend = tdb

(note the numeral )

testparm show same results, but is working

can someone explain please?

Thanks a lot
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm

Re: Samba error[SOLVED]

Postby Socaltom » Tue Aug 04, 2015 1:59 pm

https://www.samba.org/samba/docs/man/Sa ... apper.html

from the page above, idmap is essentially mapping security features between linux and unix

tdp is the default provider for this service.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Samba error[SOLVED]

Postby WarheadsSE » Tue Aug 04, 2015 2:48 pm

Please test by removing that commented line, since that is the default anyways. I have a feeling that wasn't the actual fix.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Samba error[SOLVED]

Postby elsurubi » Tue Aug 04, 2015 9:36 pm

WarheadsSE : YOU ARE RIGTH:

removed the comment, restarted the service smbd nmbd, works ... the # in that line is NOT THE ANSWER

TESTPARM:


$this->bbcode_second_pass_code('', '# Global parameters
[global]
netbios name = POGOPLUG
server string = POGOPLUG
security = USER
map to guest = Bad User
guest account = root
log file = /var/log/samba/%m.log
max log size = 50
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
load printers = No
printcap name = /dev/null
disable spoolss = Yes
idmap config * : backend = tdb
use sendfile = Yes
write cache size = 2097152
printing = bsd


[POGO]
path = /media/usb/pogo
read only = No
guest ok = Yes
')


NANO /ETC/SAMBA/SMB.CONF


$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = POGOPLUG
netbios name = POGOPLUG
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
write cache size = 2097152
use sendfile = yes
idmap config * : backend = tdb

#unprotected/public share without login
security = user
map to guest = Bad User
guest account = root

[POGO]
path = /media/usb/pogo
read only = No
public = Yes
writable = Yes
#force user = root
guest ok = Yes
')



waaathhh????????

Thanks for your help !!!


SYSTEMCTL STATUS SMBD NMBD:


$this->bbcode_second_pass_code('', '[root@alarm ~]# systemctl status smbd nmbd
● smbd.service - Samba SMB/CIFS server
Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2015-08-04 18:28:38 ART; 9min ago
Process: 11917 ExecStart=/usr/bin/smbd -D (code=exited, status=0/SUCCESS)
Main PID: 11918 (smbd)
CGroup: /system.slice/smbd.service
├─11918 /usr/bin/smbd -D
└─11921 /usr/bin/smbd -D

Aug 04 18:28:37 alarm systemd[1]: Starting Samba SMB/CIFS server...
Aug 04 18:28:38 alarm systemd[1]: Started Samba SMB/CIFS server.
Aug 04 18:28:39 alarm smbd[11918]: [2015/08/04 18:28:39.265702, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Aug 04 18:28:39 alarm smbd[11918]: STATUS=daemon 'smbd' finished starting up and ready to serve connections

● nmbd.service - Samba NetBIOS name server
Loaded: loaded (/usr/lib/systemd/system/nmbd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2015-08-04 18:28:37 ART; 9min ago
Process: 11915 ExecStart=/usr/bin/nmbd -D (code=exited, status=0/SUCCESS)
Main PID: 11916 (nmbd)
CGroup: /system.slice/nmbd.service
└─11916 /usr/bin/nmbd -D

Aug 04 18:28:36 alarm systemd[1]: Starting Samba NetBIOS name server...
Aug 04 18:28:37 alarm systemd[1]: Started Samba NetBIOS name server.
Aug 04 18:28:37 alarm nmbd[11916]: [2015/08/04 18:28:37.797551, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Aug 04 18:28:37 alarm nmbd[11916]: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
Aug 04 18:29:04 alarm nmbd[11916]: [2015/08/04 18:29:04.109703, 0] ../source3/nmbd/nmbd_become_lmb.c:397(b...age2)
Aug 04 18:29:04 alarm nmbd[11916]: *****
Aug 04 18:29:04 alarm nmbd[11916]:
Aug 04 18:29:04 alarm nmbd[11916]: Samba name server POGOPLUG is now a local master browser for workgroup....1.50
Aug 04 18:29:04 alarm nmbd[11916]:
Aug 04 18:29:04 alarm nmbd[11916]: *****
Hint: Some lines were ellipsized, use -l to show in full.
')
elsurubi
 
Posts: 13
Joined: Sun Jun 16, 2013 10:45 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 28 guests