[Samba] Can't get samba to start.

Samuel Melrose sam at feel-the-darkness.co.uk
Tue Nov 13 22:41:46 GMT 2007


Hey,
I'm having problems with samba. It has never worked properly on my server
since I've had it installed.. Its for a home server, running xbox-Linux
Fedora Core 6.
I've just uninstalled every trace of the old samba, and started a fresh.
With the latest samba sources I found on the website.

The nmbd starts fine, but smbd never starts, and in the kernel log, I get
the following message....
"<5>audit(1194957676.859:270): avc:  denied  { write } for  pid=14000
comm="smbd"
 name="secrets.tdb" dev=hda2 ino=2490462 scontext=root:system_r:smbd_t:s0
tconte
xt=root:object_r:etc_t:s0 tclass=file
<5>audit(1194957768.575:272): avc:  denied  { write } for  pid=14025
comm="smbd"
 name="secrets.tdb" dev=hda2 ino=2490462 scontext=root:system_r:smbd_t:s0
tconte
xt=root:object_r:etc_t:s0 tclass=file
<5>audit(1194957793.491:274): avc:  denied  { write } for  pid=14045
comm="smbd"
 name="secrets.tdb" dev=hda2 ino=2490462 scontext=root:system_r:smbd_t:s0
tconte
xt=root:object_r:etc_t:s0 tclass=file"

If I do an `ls` on the /etc/samba directory, it shows the permissions....
[root at xbox-server ~]# ls -l /etc/samba
total 68
-rwx------ 1 root root  8192 Nov 13 12:02 secrets.tdb
-rw-r--r-- 1 root root 19666 Nov 13 12:02 smb.conf
-rw-r--r-- 1 root root 19701 Nov 13 11:51 smb.conf.example
-rw------- 1 root root   103 Nov 13 12:03 smbpasswd

My smb.conf file is as follows...

[global]
        workgroup = MSHOME
        netbios name = XBOXSERVER
        server string = Samba Server %v
        interfaces = 192.168.1.60/24, 192.168.1.61/24
        log file = /var/log/samba/log.%m
        max log size = 50
        name resolve order = wins host lmhosts bcast
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = cups
        dns proxy = No
        hosts allow = 192.168.1.

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[print$]
        path = /var/lib/samba/printers
        write list = @adm, root
        guest ok = Yes

Can anyone tell me whats wrong?

Thank you, very much. Any help is very much appreciated!
Samuel Melrose.


More information about the samba mailing list