[OpenIndiana-discuss] Enable samba
Christopher Chan
christopher.chan at bradbury.edu.hk
Thu Jan 20 10:19:10 UTC 2011
On Thursday, January 20, 2011 06:07 PM, Paul Johnston wrote:
> 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?
With OpenIndiana, it appears that it will live in /etc/samba just like
it does elsewhere besides Solaris.
> 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.
Most likely.
>
> 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.
No smb.conf I would believe...
> I am guessing it was the lack of a config file but cannot be sure.
No config, no startup. I suspect the logs would have pretty much said
the same...in /var/samba/log/log.smbd
More information about the OpenIndiana-discuss
mailing list