Samba Issues (Solved)

Archived topics about LMDE 1 and LMDE 2
Locked
Jazzy_jeffaz

Samba Issues (Solved)

Post by Jazzy_jeffaz »

Hello everyone. I am having problems with my Samba Share folder after the update. The Share folder is set up for anyone to use over the network. My Android tablet is able to log in with not problems but when I try and stream video it takes a while to start playing and then it will stutter and stop in random locations throughout the playback. Everything worked fine before the update. Any ideas on how to fix this?

*Edited to Add*
I also cannot download large files from the shared folder. It will start to download real slow and then ultimately fail. I have reset my router and cable modem and uninstalled Samba and then installed it again.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba Issues

Post by altair4 »

These kinds of performance problem are difficult ( for me anyway ) to diagnose and fix. If it worked once and now doesn't after the update then maybe something was changed in the settings. Post the output of the following commands so we can see how you are set up:

Code: Select all

testparm -s

Code: Select all

net usershare info --long

Code: Select all

smbtree
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Jazzy_jeffaz

Re: Samba Issues

Post by Jazzy_jeffaz »

altair4 wrote:These kinds of performance problem are difficult ( for me anyway ) to diagnose and fix. If it worked once and now doesn't after the update then maybe something was changed in the settings. Post the output of the following commands so we can see how you are set up:

Code: Select all

testparm -s

Code: Select all

net usershare info --long

Code: Select all

smbtree
jeff@main:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Guest Share]"
Unknown parameter encountered: "browswable"
Ignoring unknown parameter "browswable"
Global parameter usershare allow guests found in service section!
Global parameter map to guest found in service section!
Global parameter encrypt passwords found in service section!
Global parameter passdb backend found in service section!
Global parameter obey pam restrictions found in service section!
Global parameter unix password sync found in service section!
Global parameter passwd program found in service section!
Global parameter passwd chat found in service section!
Global parameter pam password change found in service section!
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server
security = SHARE
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[Guest Share]
path = /share
read only = No
guest ok = Yes

[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers


The other two commands did not turn up any results.
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba Issues

Post by altair4 »

Based on the output of testparm it looks like the update put your smb.conf in a blender.

You might want to make a copy of the one you currently have since it seems to work - although I'm not sure how - and then start with a fresh one:

Code: Select all

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
There should be a copy at /usr/share/samba/smb.conf so send that to /etc/samba:

Code: Select all

sudo cp -a /usr/share/samba/smb.conf /etc/samba/
Then fix one mistake:

Find the line:
encrypt passwords = false
Could also be listed as "no"

and change it to:

Code: Select all

encrypt passwords = true
Then restart samba:

Code: Select all

sudo service samba restart
You'll have to add back that "Guest Share".

Then post "testparm -s" again.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Jazzy_jeffaz

Re: Samba Issues

Post by Jazzy_jeffaz »

I did everything you listed and everything from testparm -s looks the same. Here it is in case I missed something.


jeff@main:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Guest Share]"
Unknown parameter encountered: "browswable"
Ignoring unknown parameter "browswable"
Global parameter encrypt passwords found in service section!
Global parameter passdb backend found in service section!
Global parameter obey pam restrictions found in service section!
Global parameter unix password sync found in service section!
Global parameter passwd program found in service section!
Global parameter passwd chat found in service section!
Global parameter pam password change found in service section!
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server
security = SHARE
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[Guest Share]
path = /share
read only = No
guest ok = Yes

[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba Issues

Post by altair4 »

[1] Did you by any chance install any Samba4 packages?

[2] Run testparm again but point it to the copy:

Code: Select all

testparm -s /usr/share/samba/smb.conf
If that one comes up with the same output that you've posted already then we are in a heap of trouble.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Jazzy_jeffaz

Re: Samba Issues

Post by Jazzy_jeffaz »

altair4 wrote:[1] Did you by any chance install any Samba4 packages?

[2] Run testparm again but point it to the copy:

Code: Select all

testparm -s /usr/share/samba/smb.conf
If that one comes up with the same output that you've posted already then we are in a heap of trouble.

Looks quite a bit different.

jeff@main:~$ testparm -s /usr/share/samba/smb.conf
Load smb config files from /usr/share/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server
encrypt passwords = No
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
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba Issues

Post by altair4 »

Well, there's 3 things wrong with it but it's a lot closer than what you have now:

FYI:
encrypt passwords = No
Should be changed to:

Code: Select all

encrypt passwords = Yes
You need to add a line to the [global] section:

Code: Select all

map to guest = Bad User
And I don't know what this is all about:
idmap config * : backend = tdb
I'd comment it out by placing a # sign in front of it.

BUT,
The question is if you copied it over to /etc/samba/smb.conf then the two should be the same, right?
Was this operation successful:

Code: Select all

sudo cp -a /usr/share/samba/smb.conf /etc/samba/
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
DrHu

Re: Samba Issues

Post by DrHu »

http://www.samba.org/samba/docs/man/man ... tdb.8.html
  • idmap_tdb — Samba's idmap_tdb Backend for Winbind
http://www.samba.org/samba/docs/man/Sam ... nbind.html
  • There is one other facility without which UNIX and Microsoft Windows network interoperability would suffer greatly. It is imperative that there be a mechanism for sharing files across UNIX systems and to be able to assign domain user and group ownerships with integrity.
Are you connecting to a windows domain (or possibly administering all your computer connections via AD ?)
--do you need winbind ?
http://www.samba.org/samba/docs/man/Sam ... nbind.html
  • This solution is far from perfect, however, because adding and deleting users on both sets of machines becomes a chore, and two sets of passwords are required both of which can lead to synchronization problems between the UNIX and Windows systems and confusion for users
--I would guess that is the reason you might use it ? (winbind/samba)

Other possibilities.. It might not only be Linux + Samba + any Linux updates that are an issue ?

If you think that Samba is the issue, I would have a quick decko at the Samba conf page (should be available locally in terminal to you)
http://manpages.ubuntu.com/manpages/nat ... onf.5.html
..and compare to your own settings..
Jazzy_jeffaz

Re: Samba Issues

Post by Jazzy_jeffaz »

Thank you all for your help. I will be doing a lot of studying on Samba so I can learn the ins and outs. I was still having problems under Gnome 3 so I decided to run Gnome classic and everything is running fine again. I am going to go through and set up everything proper over the weekend. Wish me luck...hehe.
Locked

Return to “LMDE Archive”