Difference between revisions of "Talk:Samba"

From ArchWiki
Jump to: navigation, search
(SWAT)
(30 intermediate revisions by 12 users not shown)
Line 1: Line 1:
== Missing Instructions ==
+
== SWAT ==
  
Any comment that claims something is easy, or simple or obvious is fine,.... as long as it is followed by the actual instructions and explanations to complete the task.
+
The line states in part: "If xinetd was compiled with tcpwrapper flag enabled". Does anyone know how one might know if this is the case? - [[User:KitchM|KitchM]] 00:18, 24 March 2010 (EDT)
  
Editing a .conf file is exactly one of those tasks where detailed instructions are required.  [[User:KitchM|KitchM]] 00:52, 28 September 2009 (EDT)
+
:: It is currently compiled without tcpwrapper support, as that has been deprecated from the distro. Moving on to use systemd sockets rather than go through xinetd seems wiser.
  
== Troubleshooting ==
+
When I started xinetd according to instructions I got this message in everything.log: "Port not specified and can't find service: swat with getservbyname"
 +
Portnumber was not set in the default SWAT configuration file /etc/xinetd.d/swat.
 +
I added the line "port = 901". When I restarted xinetd I got the message "service/protocol combination not in /etc/services: swat/tcp". I selected an unassigned number and added the line "swat 1001/tcp" in /etc/services. I changed port number to 1001 in /etc/xinetd.d/swat. Now I could log into SWAT on http://localhost:1001. [[User:Erlhel|Erlhel]] 18:45, 7 April 2012 (EDT)
  
At http://www.samba.org/samba/history/samba-3.4.0.html
+
:: related topic here:
 +
:: https://bbs.archlinux.org/viewtopic.php?pid=1276428#p1276428
  
Major enhancements in Samba 3.4.0 include:
+
:: I've updated the wiki section on SWAT to reflect the systemd option that doesn't require xinetd. Please review--[[User:Stefanwilkens|stefanwilkens]] ([[User talk:Stefanwilkens|talk]]) 13:46, 22 May 2013 (UTC)
  
Configuration changes: The default passdb backend has been changed to 'tdbsam'!
+
::: After review, I've also opted to remove the xinetd middleman method. This duplicated systemd's socket feature by letting xinetd monitor the socket and then starting xinetd through systemd. It seemed needlessly double to me. --[[User:Stefanwilkens|stefanwilkens]] ([[User talk:Stefanwilkens|talk]]) 12:43, 26 May 2013 (UTC)
 
+
The default passdb backend has been changed to 'tdbsam'! That breaks existing setups using the 'smbpasswd' backend without explicit declaration!
+
 
+
Please use ''''passdb backend = smbpasswd'''' if you would like to stick to the 'smbpasswd' backend or convert your smbpasswd entries using e.g. ''''pdbedit -i smbpasswd -e tdbsam''''.
+
 
+
--[[User:Juanmah|Juanmah]] 09:52, 29 November 2009 (EST)
+
 
+
== Removal of section regarding 3.4.3 ==
+
 
+
I removed the section about downgrading due to problems with version 3.4.3 and afterwards realized this section had only just been added today.
+
I don't mean to step on any toes here! However, as far as I know, there is no reason to downgrade now. The problem with browsing workgroups was fixed by a patch added to version 3.4.3-3 of the smbclient package. Please correct me if I am wrong!
+
 
+
:No worries; it was not added today. A note about changes in 3.4.0 was added today under the "3.4.3 issues" section; I merely split it into a separate section. The note about downgrading was added some weeks ago. -- [[User:Pointone|pointone]] 17:11, 1 December 2009 (EST)
+
 
+
==Possible omission in the Installation section==
+
The Installation section states: "Installing only the client program is sufficient for systems that are  not meant to share files, only access them". However installing just the smbclient package doesn't result in the creation of an /etc/samba/smb.conf file that apparently smbclient complains about if absent http://pastebin.com/f793e7a08 . An /etc/samba/smb.conf file is only created when one installs the 'samba' package as well. Please make the necessary edits.
+
~ [[User:erythrocyte|erythrocyte]] Thu Feb  4 21:16:00 IST 2010
+
 
+
:The article is correct; smbclient warns about a missing smb.conf, but still works fine (at least on my system).
+
 
+
:Also, users only looking to access files will most likely be using mount.cifs that's included with the smbclient package (and doesn't complain about smb.conf).
+
 
+
:-- [[User:Pointone|pointone]] 11:38, 4 February 2010 (EST)
+
 
+
::An interesting point.  I have also been worried about these strange phrases popping up inappropriately.  Do you think this should be mentioned upstream as a bug? - [[User:KitchM|KitchM]] 12:59, 4 February 2010 (EST)
+
 
+
==Installation==
+
samba-client no longer exists as a seperate package.  Edited the wiki to reflect that.  Also fixed grammar to properly reflect changes.
+
--[[User:Shoeunited|Shoe - I like finding bugs. They make *Nix stronger.]] 04:02, 18 March 2010 (EDT)
+
 
+
:{{Package Official|smbclient}} still exists in my reality... -- [[User:Pointone|pointone]] 10:06, 18 March 2010 (EDT)
+
 
+
Odd it didn't show up for me when I did Syu yesterday. Ah well.  Correcting my correction. :) Thanks for pointing it out Pointone.  :)--[[User:Shoeunited|Shoe - I like finding bugs. They make *Nix stronger.]] 19:03, 18 March 2010 (EDT)
+
 
+
::I couldn't find it either.  Perhaps using wrong name. It seems misleading to call one samba and the other smbclient.  Why not samba-server and samba-client?  Why must everything be confusing by not following standard naming conventions?  Oh, well. - [[User:KitchM|KitchM]] 11:44, 19 March 2010 (EDT)
+
 
+
== SWAT ==
+
 
+
The line states in part: "If xinetd was compiled with tcpwrapper flag enabled".  Does anyone know how one might know if this is the case? - [[User:KitchM|KitchM]] 00:18, 24 March 2010 (EDT)
+
  
 
== Share Access ==
 
== Share Access ==
Line 57: Line 21:
 
:As I read it, the difference is made between KDE and Gnome's graphical file managers (3.2) and from commandline (3.3). On the other hand, gvfs belongs to gnome - all a tad confusing. See my post below for a suggestion on how to rewrite that bit. [[User:Hokasch|Hokasch]] 12:02, 18 May 2010 (EDT)
 
:As I read it, the difference is made between KDE and Gnome's graphical file managers (3.2) and from commandline (3.3). On the other hand, gvfs belongs to gnome - all a tad confusing. See my post below for a suggestion on how to rewrite that bit. [[User:Hokasch|Hokasch]] 12:02, 18 May 2010 (EDT)
 
::Thanks; very nice!  I'm totally with you on this.  In fact, what if someone uses a different file manager?  Why are there so many different network browser mechanisms?  Why so many different network protocols?  Etc., etc..  I picked Ext3 only once when I installed the OS, and I didn't even have to configure that.  I was able to connect to the Internet with little work.  But to hook my computer to another one on my own LAN, I've got to jump thru hoops.  That bugs the heck out of me.  There's got to be a better way. - [[User:KitchM|KitchM]] 01:43, 19 May 2010 (EDT)
 
::Thanks; very nice!  I'm totally with you on this.  In fact, what if someone uses a different file manager?  Why are there so many different network browser mechanisms?  Why so many different network protocols?  Etc., etc..  I picked Ext3 only once when I installed the OS, and I didn't even have to configure that.  I was able to connect to the Internet with little work.  But to hook my computer to another one on my own LAN, I've got to jump thru hoops.  That bugs the heck out of me.  There's got to be a better way. - [[User:KitchM|KitchM]] 01:43, 19 May 2010 (EDT)
::: I am not aware of other filebrowsers that can browse/mount shares on the fly. With thunar and fluxbox, I used some of the solutions mentioned later (fusesmb or so). Look here for some quick adjustments (didnt' want to mess up the paragraphs on the official page for now): http://wiki.archlinux.org/index.php/User:Hokasch/Samba[[User:Hokasch|Hokasch]] 08:31, 19 May 2010 (EDT)
+
::: I am not aware of other filebrowsers that can browse/mount shares on the fly. With thunar and fluxbox, I used some of the solutions mentioned later (fusesmb or so). Look here for some quick adjustments (didnt' want to mess up the paragraphs on the official page for now): https://wiki.archlinux.org/index.php/User:Hokasch/Samba[[User:Hokasch|Hokasch]] 08:31, 19 May 2010 (EDT)
 
::::The issue is actually that the underlying services are not correctly done.  For instance, if the user wishes to access a network share, the only thing that must be there (besides the other computers being turned on and physically connected to the LAN) is for the proper service to be running so that the OS knows that the computers are available.  All file managers should then be able to see the shares available.  This should be automatic.
 
::::The issue is actually that the underlying services are not correctly done.  For instance, if the user wishes to access a network share, the only thing that must be there (besides the other computers being turned on and physically connected to the LAN) is for the proper service to be running so that the OS knows that the computers are available.  All file managers should then be able to see the shares available.  This should be automatic.
  
 
::::Why should a person have to use a network browser, such as Avahi or LinNeighborhood?  If those work, then the file manager should be able to handle that as well.  Right now, if I use one of these to mount a network share, then any file manager can see that item and automatically list it in the directory tree.  Since my file manager (XFE) can mount and unmount things, there is only one part missing, and that isn't the fault of the file manager. - [[User:KitchM|KitchM]] 13:46, 24 May 2010 (EDT)
 
::::Why should a person have to use a network browser, such as Avahi or LinNeighborhood?  If those work, then the file manager should be able to handle that as well.  Right now, if I use one of these to mount a network share, then any file manager can see that item and automatically list it in the directory tree.  Since my file manager (XFE) can mount and unmount things, there is only one part missing, and that isn't the fault of the file manager. - [[User:KitchM|KitchM]] 13:46, 24 May 2010 (EDT)
 
== Browsing Shares with Gnome/KDE ==
 
 
With great wonder I just realized I can browse my (Windows) network in Nautilus (something I haven't managed to get working for years, despite following a lot of tips), by just running the Avahi-daemon. I never suspected "Avahi" to do such a thing, not sure why but the name sounded strange to me, more like a IM client or some browser search plugin spam.
 
 
 
Anyway, there is an Avahi page, but the only link to it is under "References" on the NFS page. I think this is information should be better integrated, as "browsing the network neighbourhood" is something rather basic you expect from your DE (or am I the only one not getting this?).
 
 
I suggest to rewrite the paragraph "Accessing a Samba share from Gnome or KDE" so it tells you how to browse Networks under these DE's - linking to the Avahi wiki page, and also give the tip that smb shares can be accessed "manually" through the pathbar. Xfce's Thunar has no in-build support for network browsing, but fusesmb and the like are already mentioned later on this page. "Accessing a Samba share from ''Nautilus or Konqueror''" might be a better name.
 
 
Gnome/Nautilus: gvfs-smb, smbclient and runnning avahi (correct?)
 
 
KDE/Konqueror: don't know...
 
 
[[User:Hokasch|Hokasch]] 12:03, 18 May 2010 (EDT)
 
  
 
== Rearrangement ==
 
== Rearrangement ==
Line 91: Line 40:
 
:I think you have a point, _netdev should probably be added to the mount options. -- [[User:Kynikos|Kynikos]] 06:15, 13 December 2011 (EST)
 
:I think you have a point, _netdev should probably be added to the mount options. -- [[User:Kynikos|Kynikos]] 06:15, 13 December 2011 (EST)
  
 +
 +
== Messy ==
 +
 +
This page is a bit of a mess.. KDE file sharing it at the bottom but numerious deprecated method are listed in the main article..
 +
 +
== smb.conf file required for smbclient? ==
 +
 +
I get an error (warning) when I try to use smbclient without Samba server on that client? Should the wiki be updated to clarify the necessity of smb.conf on smbclient installs only? The wiki is confusing to me because it appears that smb.conf is not required for smbclient only installs.
 +
 +
Error below:
 +
 +
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
 +
No such file or directory
 +
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
 +
 +
Forgive me, this is my first talk entry.[[User:Stevepa|Stevepa]] ([[User talk:Stevepa|talk]]) 18:43, 2 December 2012 (UTC)
 +
 +
:I tried the ''smbclient -L'' command and also got this message. I suspect it is just an overly talkative program rather than an indication of an error. Might be worth mentioning this, unless someone knows how a missing config file could cause a real problem. [[User:Vadmium|Vadmium]] ([[User talk:Vadmium|talk]]) 01:58, 3 December 2012 (UTC).
 +
 +
== security <nowiki>=</nowiki> share deprecated ==
 +
{{ic|security <nowiki>=</nowiki> share}} is deprecated as of December 2010, apparently. (see more at [http://lists.samba.org/archive/samba/2010-December/160046.html Samba mailing list]) [[User:Zachera|Zachera]] ([[User talk:Zachera|talk]]) 10:22, 13 January 2013 (UTC)
 +
 +
== Fixing this Article ==
 +
 +
I am trying to fix this article, see [[User:Axanon/sandbox/Samba]] for my current progress. Suggestions and comments can be made here: [[User talk:Axanon/sandbox/Samba]].
  
[https://wiki.archlinux.org/index.php/Samba_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)#.D0.A4.D0.B0.D0.B9.D0.BB.D0.BE.D0.B2.D1.8B.D0.B9_.D0.BC.D0.B5.D0.BD.D0.B5.D0.B4.D0.B6.D0.B5.D1.80_.D0.BD.D0.B5_.D0.BE.D1.82.D0.BA.D1.80.D1.8B.D0.B2.D0.B0.D0.B5.D1.82_.D0.BE.D0.B1.D1.89.D0.B8.D0.B9_.D0.B4.D0.BE.D1.81.D1.82.D1.83.D0.BF Net Usershare error] This section in Russian variant is notable I guess, because couldn't succeed to share a folder until did that on all of my recent arch installations. I could translate and include in this wiki page in case... --[[User:Ottoshmidt|Ottoshmidt]] 08:40, 16 January 2012 (EST)
+
Goals:
 +
# Clean up grammar.
 +
# Organize sections for better flow.
 +
# Remove duplicate information.
 +
# Split troubleshooting and tips to: Samba/troubleshooting and Samba/Tips and tricks.
 +
[[User:Axanon|Axanon]] ([[User talk:Axanon|talk]]) 20:25, 23 January 2013 (UTC)

Revision as of 12:43, 26 May 2013

SWAT

The line states in part: "If xinetd was compiled with tcpwrapper flag enabled". Does anyone know how one might know if this is the case? - KitchM 00:18, 24 March 2010 (EDT)

It is currently compiled without tcpwrapper support, as that has been deprecated from the distro. Moving on to use systemd sockets rather than go through xinetd seems wiser.

When I started xinetd according to instructions I got this message in everything.log: "Port not specified and can't find service: swat with getservbyname" Portnumber was not set in the default SWAT configuration file /etc/xinetd.d/swat. I added the line "port = 901". When I restarted xinetd I got the message "service/protocol combination not in /etc/services: swat/tcp". I selected an unassigned number and added the line "swat 1001/tcp" in /etc/services. I changed port number to 1001 in /etc/xinetd.d/swat. Now I could log into SWAT on http://localhost:1001. Erlhel 18:45, 7 April 2012 (EDT)

related topic here:
https://bbs.archlinux.org/viewtopic.php?pid=1276428#p1276428
I've updated the wiki section on SWAT to reflect the systemd option that doesn't require xinetd. Please review--stefanwilkens (talk) 13:46, 22 May 2013 (UTC)
After review, I've also opted to remove the xinetd middleman method. This duplicated systemd's socket feature by letting xinetd monitor the socket and then starting xinetd through systemd. It seemed needlessly double to me. --stefanwilkens (talk) 12:43, 26 May 2013 (UTC)

Share Access

Is the implication with the difference between KDE and Gnome on accessing shares that other DE's need special configurations as well? - KitchM 02:06, 7 May 2010 (EDT)

As I read it, the difference is made between KDE and Gnome's graphical file managers (3.2) and from commandline (3.3). On the other hand, gvfs belongs to gnome - all a tad confusing. See my post below for a suggestion on how to rewrite that bit. Hokasch 12:02, 18 May 2010 (EDT)
Thanks; very nice! I'm totally with you on this. In fact, what if someone uses a different file manager? Why are there so many different network browser mechanisms? Why so many different network protocols? Etc., etc.. I picked Ext3 only once when I installed the OS, and I didn't even have to configure that. I was able to connect to the Internet with little work. But to hook my computer to another one on my own LAN, I've got to jump thru hoops. That bugs the heck out of me. There's got to be a better way. - KitchM 01:43, 19 May 2010 (EDT)
I am not aware of other filebrowsers that can browse/mount shares on the fly. With thunar and fluxbox, I used some of the solutions mentioned later (fusesmb or so). Look here for some quick adjustments (didnt' want to mess up the paragraphs on the official page for now): https://wiki.archlinux.org/index.php/User:Hokasch/SambaHokasch 08:31, 19 May 2010 (EDT)
The issue is actually that the underlying services are not correctly done. For instance, if the user wishes to access a network share, the only thing that must be there (besides the other computers being turned on and physically connected to the LAN) is for the proper service to be running so that the OS knows that the computers are available. All file managers should then be able to see the shares available. This should be automatic.
Why should a person have to use a network browser, such as Avahi or LinNeighborhood? If those work, then the file manager should be able to handle that as well. Right now, if I use one of these to mount a network share, then any file manager can see that item and automatically list it in the directory tree. Since my file manager (XFE) can mount and unmount things, there is only one part missing, and that isn't the fault of the file manager. - KitchM 13:46, 24 May 2010 (EDT)

Rearrangement

It might be a very helpful thing for an expert on the subject to work this whole article over in a better arrangement of the process. I have found that the comments here point out a few issues, and my experience notes a couple things. I found the following basic outline: 1. install, 2. configure smb.conf, 3. start daemons, 4. add users, 5. access shares from other computers on LAN, and 6. mounting those shares

What seems to be left out are: 1. more smb.conf details, 2. creating shares, 3. making them available for other computers, and ?

_netdev mount option

when adding a share to /etc/fstab, wouldn't adding _netdev be a good idea?

(Please sign your edits in discussion pages with ~~~~)
I think you have a point, _netdev should probably be added to the mount options. -- Kynikos 06:15, 13 December 2011 (EST)


Messy

This page is a bit of a mess.. KDE file sharing it at the bottom but numerious deprecated method are listed in the main article..

smb.conf file required for smbclient?

I get an error (warning) when I try to use smbclient without Samba server on that client? Should the wiki be updated to clarify the necessity of smb.conf on smbclient installs only? The wiki is confusing to me because it appears that smb.conf is not required for smbclient only installs.

Error below:

params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
	No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it

Forgive me, this is my first talk entry.Stevepa (talk) 18:43, 2 December 2012 (UTC)

I tried the smbclient -L command and also got this message. I suspect it is just an overly talkative program rather than an indication of an error. Might be worth mentioning this, unless someone knows how a missing config file could cause a real problem. Vadmium (talk) 01:58, 3 December 2012 (UTC).

security = share deprecated

security = share is deprecated as of December 2010, apparently. (see more at Samba mailing list) Zachera (talk) 10:22, 13 January 2013 (UTC)

Fixing this Article

I am trying to fix this article, see User:Axanon/sandbox/Samba for my current progress. Suggestions and comments can be made here: User talk:Axanon/sandbox/Samba.

Goals:

  1. Clean up grammar.
  2. Organize sections for better flow.
  3. Remove duplicate information.
  4. Split troubleshooting and tips to: Samba/troubleshooting and Samba/Tips and tricks.

Axanon (talk) 20:25, 23 January 2013 (UTC)