I am running Ubuntu server 12.04.03 and When I install Samba with the following command:
platour@tech:/$ sudo apt-get install samba
and try to edit /etc/samba/smb.conf to add my own shares, there is no smb.conf and not even a samba directory under /etc, so I looked more closely to the installation info displayed after the command above and here is what I got ( I put in red what flashed me):
Reading package lists... Done
Building dependency tree
Reading state information... Done
openbsd-inetd inet-superserver smbldap-tools ctdb
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/8,040 kB of archives.
After this operation, 23.4 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package samba.
(Reading database ... 62050 files and directories currently installed.)
Unpacking samba (from .../samba_2%3a3.6.3-2ubuntu2.9_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up samba (2:3.6.3-2ubuntu2.9) ...
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
smbd start/running, process 3397
nmbd stop/pre-start, process 3432
Then I tried smbstatus.samba3 and the result is:
platour@tech:/etc/samba$ sudo /usr/bin/smbstatus.samba3
Can't load /etc/samba/smb.conf - run testparm to debug it
I ran testparm and:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
No such file or directory
Error loading services.
I deinstalled and reinstalled samba but always got the same result. Any idea ?
Thanks and Regards,