[OpenIndiana-discuss] Enable samba

Paul Johnston paul.johnston at manchester.ac.uk
Thu Jan 20 10:07:34 UTC 2011


  On 01/19/11 10:09 PM, Christopher Chan wrote:
> On Thursday, January 20, 2011 01:40 AM, Jonathan Adams wrote:
>> And I'm assuming that you've created an smb.conf file in /etc/sfw ...
>
> Did that change again? I thought it was in /etc/samba?
>
>
Any idea where the smb.conf file should be?
There is a directory /etc/samba which has a file called smb.conf-example 
which I have made a copy of called smb.conf just to see it the lack of 
that file is causing the problem.

I have a smb.conf file

paulj at openindiana:/etc/samba$ ls -l
total 22
dr-x------ 2 root bin     2 2011-01-19 16:06 private
-r--r--r-- 1 root root 9662 2011-01-20 09:33 smb.conf
-r--r--r-- 1 root bin  9662 2011-01-19 16:06 smb.conf-example

Now

paulj at openindiana:/etc/samba$ pfexec svcadm clear samba
paulj at openindiana:/etc/samba$ pfexec svcs samba
STATE          STIME    FMRI
online          9:48:29 svc:/network/samba:default
paulj at openindiana:/etc/samba$ pfexec svcs -xv samba
svc:/network/samba:default (SMB file server)
  State: online since January 20, 2011 09:48:29 AM GMT
    See: man -M /usr/share/man -s 1m smbsmbd
    See: man -M /usr/share/man -s 4 smb.conf
    See: /var/svc/log/network-samba:default.log
Impact: None.
paulj at openindiana:/etc/samba$


WORKING!!!

At this point I am getting confused :-)
Wonder what exactly was causing it not to start and which thing caused 
it to be able to start.
I am guessing it was the lack of a config file but cannot be sure.
How am I able to find which config file samba was looking at?
I've looked in /lib/svc/manifest/network/samba.xml but am no the wiser.

swat.xml says

paulj at openindiana:/lib/svc/manifest/network$ find . -name "swat.xml" 
-exec grep  "/smb.conf" {} \;
Swat support a browser interface to configure samba generating the 
/etc/samba/smb.conf .

But that is the only reference to the location of a config file I can find.

Regards Paul

Paul




More information about the OpenIndiana-discuss mailing list