Samba Issues (Solved)
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Samba Issues (Solved)
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.
*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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Samba Issues
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.
Re: Samba Issues
jeff@main:~$ testparm -saltair4 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
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.
Re: Samba Issues
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:
There should be a copy at /usr/share/samba/smb.conf so send that to /etc/samba:
Then fix one mistake:
Find the line:
and change it to:
Then restart samba:
You'll have to add back that "Guest Share".
Then post "testparm -s" again.
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
Code: Select all
sudo cp -a /usr/share/samba/smb.conf /etc/samba/
Find the line:
Could also be listed as "no"encrypt passwords = false
and change it to:
Code: Select all
encrypt passwords = true
Code: Select all
sudo service samba restart
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.
Re: Samba Issues
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
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
Re: Samba Issues
[1] Did you by any chance install any Samba4 packages?
[2] Run testparm again but point it to the copy:
If that one comes up with the same output that you've posted already then we are in a heap of trouble.
[2] Run testparm again but point it to the copy:
Code: Select all
testparm -s /usr/share/samba/smb.conf
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Samba Issues
altair4 wrote:[1] Did you by any chance install any Samba4 packages?
[2] Run testparm again but point it to the copy:If that one comes up with the same output that you've posted already then we are in a heap of trouble.Code: Select all
testparm -s /usr/share/samba/smb.conf
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
Re: Samba Issues
Well, there's 3 things wrong with it but it's a lot closer than what you have now:
FYI:
You need to add a line to the [global] section:
And I don't know what this is all about:
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:
FYI:
Should be changed to:encrypt passwords = No
Code: Select all
encrypt passwords = Yes
Code: Select all
map to guest = Bad User
I'd comment it out by placing a # sign in front of it.idmap config * : backend = tdb
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.
Re: Samba Issues
http://www.samba.org/samba/docs/man/man ... tdb.8.html
--do you need winbind ?
http://www.samba.org/samba/docs/man/Sam ... nbind.html
Other possibilities..
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..
- idmap_tdb — Samba's idmap_tdb Backend for Winbind
- 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.
--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
Other possibilities..
- Windows share options for files
--are you running MS security essentials, anti-virus etc which would slow file transfers - Android
--try any particular utilities, might provide better access
http://www.techrepublic.com/blog/smartp ... ndsmb/2709 - Are you running windows 7 OS as the host share folder
- You may be able to pick which OS to push or pull from
--for example on the windows OS robocopy might work better
http://technet.microsoft.com/en-us/maga ... light.aspx
--a GUI front-end to robocopy..
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..
Re: Samba Issues
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.