[WLUG] partially working Samba service

Dan Pritts danno at dogcheese.net
Mon Nov 24 14:08:52 EST 2014


I thought an individual smbd got spawned for each connection, and then setuid to the user who was connecting.  Perhaps I’m wrong, or out of date.

My next suggestion would be to dig in and figure out how to increase logging verbosity.  make sure that /var/log/samba is mode 1777 so if i’m right about the suid bit, each individual smbd will still be able to write there.

> On Nov 24, 2014, at 2:01 PM, Jim Irrer <irrer at umich.edu> wrote:
> 
> Dan -
> 
> I've checked file permissions on the server side and chmod'ed them to 777.
> 
> The smbd is running as root.  There will be several different users accessing this,
> so I don't see how it could be run as a regular user.
> 
> Not much info, but here's the contents of /var/log/samba/log.smbd .  There wasn't anything
> else in the /var/log directory.
> 
> 
> [2014/11/24 09:51:38,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:28:11,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:30:53,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:44:56,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:44:56.448058,  0] param/loadparm.c:8004(lp_do_parameter)
>   Global parameter wins support found in service section!
> [2014/11/24 10:45:55,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:45:55.245308,  0] param/loadparm.c:8004(lp_do_parameter)
>   Global parameter wins support found in service section!
> [2014/11/24 10:49:27,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 10:57:29,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 11:36:13,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 11:55:12,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 11:57:53,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:05:01,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:08:31,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:12:36,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:28:23,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:31:41,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 12:34:25,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:01:30,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:02:16,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:43:54,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> [2014/11/24 13:44:08,  0] smbd/server.c:1072(main)
>   smbd version 3.6.23-12.el6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2011
> 
> 
> Thanks,
> 
> - Jim
> 
> Jim Irrer     irrer at umich.edu <mailto:irrer at umich.edu>       (734) 647-4409 <tel:%28734%29%20647-4409>
> University of Michigan Hospital Radiation Oncology
> 519 W. William St.             Ann Arbor, MI 48103-4943
> 
> On Mon, Nov 24, 2014 at 1:48 PM, Dan Pritts <danno at dogcheese.net <mailto:danno at dogcheese.net>> wrote:
> I presume you have double checked the permissions on the server side.  
> 
> Is the smbd running as “irrer”?  (which is I think how it should be but I”m not sure)
> 
> What does the log file say?
> 
>> On Nov 24, 2014, at 1:40 PM, Jim Irrer <irrer at umich.edu <mailto:irrer at umich.edu>> wrote:
>> 
>> Howdy -
>> 
>> I'm trying to get a Samba version 3.6.23 server working, and it's about 2% functional.  From Windows 7, I mount the 
>> directory with the following command:
>> 
>> net use m: '\\141.214.124.93\home' <> [password] /USER:irrer
>> 
>> 
>> On Windows I can do a directory list of the /home directory, but nothing else.  I can not cat/type a file on
>> Windows, or do a directory listing on any subdirs under /home.
>> 
>> Just to eliminate one more source of problems, I have shut off iptables.  I don't care about printers, just want
>> to access some Linux directories from Windows.  The password was set up on Linux with the smbpasswd
>> command, and if I use the wrong one then the mount/'net use' command fails, which confirms proper password
>> setup (right?).
>> 
>> I also have another Samba server 3.0.33 that I set up long ago that works great from the same Windows desktop.
>> 
>> 
>> 
>> The /etc/samba/smb.config file with comments removed is:
>> 
>> [global]
>>         workgroup = umhs
>>         server string = Samba Server Version %v
>>         client signing = Yes
>>         log file = /var/log/samba/log.%m
>>         max log size = 50
>>         security = user
>>         passdb backend = tdbsam
>>         load printers = yes
>>         cups options = raw
>> [homes] 
>>     browsable = no
>>     map archive = yes
>> [home]
>>         browseable = yes
>>         read only = no
>>         path = /home
>> 
>> Thanks,
>> 
>> - Jim
>> 
>> Jim Irrer     irrer at umich.edu <mailto:irrer at umich.edu>       (734) 647-4409 <tel:%28734%29%20647-4409>
>> University of Michigan Hospital Radiation Oncology
>> 519 W. William St.             Ann Arbor, MI 48103-4943
>> _______________________________________________
>> washlug mailing list
>> washlug at washlug.org <mailto:washlug at washlug.org>
>> http://linux.marcdatabase.com/mailman/listinfo/washlug <http://linux.marcdatabase.com/mailman/listinfo/washlug>
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux.marcdatabase.com/pipermail/washlug/attachments/20141124/f88340f2/attachment-0001.html 


More information about the washlug mailing list