samba server issues

Associate
Joined
20 Jul 2005
Posts
216
so ive set up a new server, ubuntu server 8.04lts. got it all up and running with the exception of the samba server.

I had to write a new /etc/samba/smb.conf file from a combination of guides, and ive got this:

#Global Settings

[global]
# Settings

kernel oplocks = yes
client use spnego = yes
server signing = auto
client signing = auto
template shell = /bin/bash
nt acl support = yes
change notify timeout = 0

# Share Behavior

inherit permissions = yes
inherit acls = yes
map acl inherit = yes
acl compatibility = auto
dos filemode = yes
dos filetimes = yes
dos filetime resolution = yes
map archive = yes
map system = no
map hidden = no
ea support = yes
force create mode = 0760

# Domain Settings

workgroup = HOME
server string = %h server (Samba, Ubuntu)
os level = 0
preferred master = no
announce as = NT Server
announce version = 4.9
browse list = yes
domain master = no
local master = no
enhanced browsing = yes
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind use default domain = no
winbind enum groups = yes
winbind enum users = yes
winbind separator = +
realm = HOME

# Security

hosts allow = 192.168.1. 192.168.0. 127.
security = ads
password server = *
encrypt passwords = yes

# Printers

printcap name = /etc/printcap
load printers = yes
printing = cups
cups options = raw

# Logging

log file = /var/log/samba/%m.log
log level = 3
max log size = 500

# Network Settings

remote announce = 192.168.0.
disable netbios = no
netbios name = SERVER1


# Network Shares

[music]
comment = Public Music Folder
path = /media/music
guest ok = no
read only = no
writeable = yes
create mask = 0777
directory mask = 0777
acl group control = yes
store dos attributes = yes

All the hdds are visible on the server machine, however I still cannot get them on the machines local to the network.

on this machine i get this error when I try to connect via the terminal:

Kinit(v5): Cannot resolve network address for KDC in realm Home while getting initial credentials

any ideas, im guessing im having some sort of domain problem? but this is kinda out of my linux league.
 
At a guess the problem you're currently experiencing is because you're using Active Directory (AD) authentication. The host is therefore trying to get a Kerberos ticket from a non-existent domain controller and failing.

Try setting security = share and see if that helps.

Also your config looks awfully complex for what I'm assuming is a home server and you seem to have a lot of extra configuration that's intended for use in mixed-environment setups. Which guide(s) are you following to set this up?
 
Do you actually require all the options in that config? If it was a business network or something then i could understand but for a simple music folder i don't think you do, The errors you are getting are related to a key distribution center, probably part of kerberos? Are you using kerberos on your network?

If you are, and require all these options then forget the rest of this post :p

I recommend installing SWAT, a web based samba configuration tool, which makes life a lot easier.

As an example, heres my home samba config file.
Code:
[global]
        workgroup = TGROUP
        server string = Samba Server
        map to guest = Bad User
        printcap name = cups
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s
 /bin/false %m$
        logon path = \\%L\profiles\.msprofile
        logon drive = P:
        logon home = \\%L\%U\.9xprofile
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        cups options = raw

[Media2]
        comment = Media 2 @ TStorage
        path = /mnt/media2
        read only = No
        guest ok = Yes

[Media1]
        comment = Media 1 @ TStorage
        path = /mnt/media1
        read only = No
        guest ok = Yes

[Media3]
        comment = Media 3 @ TStorage
        path = /mnt/media3
        read only = No
        guest ok = Yes

[Rtorrent]
        comment = rtorrent
        path = /mnt/backup/rtorrent
        fore create mode = 777
        create mask = 777
        directory mask = 777
        read only = No
        guest ok = Yes
        browseable = no

Then add your windows users with smbpasswd -a on the linux box.

Hope thats some help, and apologies if you do need custom domain settings and such.

Jack
 
well it is a bit more complicated than just a music folder, i just cut it short to save space. no im not using kerberos on the system, and its only one domain. and i probably dont need most of the settings ive stated.

https://help.ubuntu.com/community/SettingUpSamba

used most of the server guide at the bottom.

Ill make a few changes and see what happens.
 
Back
Top Bottom