PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Nach Rechnerneustart sind Umlaut weg



TBVAndy
18.04.12, 07:08
Hallo zusammen,

ich habe ein komisches Problem mit Samba. Und zwar verschwinden bei mir nach jedem RECHNERneustart sämtliche Umlaute wie Ä,Ö,Ü usw. aus meinem Verzeichnis- und Dateinamen. Diese werden dann durch _ ersetzt.
Wenn ich nach dem Rechnerstart einmal Samba per /etc/init.d/samba restart neu starte, sind sämtliche Umlaute wieder da (außnahme sind Verzeichnisse und Dateien die im Zeitraum zwischen Rechnerneustart und Sambaneustart angefaßt worden sind.

Komisch ist halt nur das nach einem Sambaneustart alle wieder gut ist.
Muss ich da in der smb.conf noch irgendetwas setzen, was er beim Rechnerneustart noch nicht kennt, danach aber schon? Startet Samba bei Rechnerneustart eventuell zu früh?

Einer ne Idee?

marce
18.04.12, 07:24
Einer ne Idee?
Ja: Poste bitte Logs und relevante Configs.

TBVAndy
18.04.12, 07:52
smb.conf


[global]
workgroup = SERVER2_PDC
#workgroup = PDC_AS
netbios name = SERVER2
server string = %h server (Samba, Debian 6.X)


passdb backend = tdbsam
security = user
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts
domain logons = yes
preferred master = yes
wins support = yes
unix extensions = no
time server = yes

# Set CUPS for printing
load printers = yes
printcap name = CUPS
printing = CUPS

smb ports = 445 139

# Default logon
logon drive = U:
logon script = %U.bat
logon path = \\server2\profiles\%U


# Useradd scripts
add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usernod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
idmap uid = 15000-20000
idmap gid = 15000-20000
template shell = /bin/bash


# sync smb passwords woth linux passwords
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd chat debug = yes
unix password sync = yes
encrypt passwords = yes
update encrypted = yes
null passwords = no
pam password change = yes
password level = 5
lanman auth = Yes

# Performance Einstellungen
unix charset = LOCALE
short preserve case = yes
max log size = 5000
case sensitive = no
default case = lower
max xmit = 8192
dead time = 15
read raw = yes
write raw = yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
oplocks = yes
fake oplocks = no
preserve case = yes
getwd cache = yes


# set the loglevel
log level = 2


log.nmbd


[2012/04/17 15:47:10.242992, 2] nmbd/nmbd_browsesync.c:107(announce_local_master_browse r_to_domain_master_browser)
announce_local_master_browser_to_domain_master_bro wser:
We are both a domain and a local master browser for workgroup SERVER2_PDC. Do not announce to ourselves.
[2012/04/17 15:47:10.243066, 2] nmbd/nmbd_browsesync.c:151(sync_with_dmb)
sync_with_dmb:
Initiating sync with domain master browser SERVER2<20> at IP 192.168.1.2 for workgroup SERVER2_PDC
[2012/04/17 15:48:22.350924, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 15:48:22.351058, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 15:48:22.351088, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 15:48:22.351117, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 15:48:22.351144, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 15:48:22.351172, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 15:48:22.351199, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 16:01:14, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2012/04/17 16:01:14.425228, 2] lib/tallocmsg.c:106(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2012/04/17 16:01:14.425275, 2] lib/dmallocmsg.c:77(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
[2012/04/17 16:01:14.425886, 2] nmbd/nmbd.c:890(main)
Becoming a daemon.
[2012/04/17 16:01:14.426526, 0] nmbd/asyncdns.c:155(start_async_dns)
started asyncdns process 1943
[2012/04/17 16:01:14.427419, 2] lib/interface.c:340(add_interface)
added interface eth0 ip=fe80::223:54ff:fe84:abfb%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
[2012/04/17 16:01:14.427511, 2] lib/interface.c:340(add_interface)
added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0
[2012/04/17 16:01:14.427565, 2] nmbd/nmbd_subnetdb.c:171(make_subnet)
making subnet name:192.168.1.2 Broadcast address:192.168.1.255 Subnet mask:255.255.255.0
[2012/04/17 16:01:14.427582, 2] nmbd/nmbd_subnetdb.c:288(create_subnets)
create_subnets: ignoring non IPv4 interface.
[2012/04/17 16:01:14.427596, 2] nmbd/nmbd_subnetdb.c:171(make_subnet)
making subnet name:UNICAST_SUBNET Broadcast address:192.168.1.2 Subnet mask:192.168.1.2
[2012/04/17 16:01:14.427610, 2] nmbd/nmbd_subnetdb.c:171(make_subnet)
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2012/04/17 16:01:14.427623, 2] nmbd/nmbd_subnetdb.c:171(make_subnet)
making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2012/04/17 16:01:14.428299, 2] nmbd/nmbd_lmhosts.c:41(load_lmhosts_file)
load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
[2012/04/17 16:01:14.442695, 0] nmbd/nmbd_logonnames.c:160(add_logon_names)
add_domain_logon_names:
Attempting to become logon server for workgroup SERVER2_PDC on subnet 192.168.1.2
[2012/04/17 16:01:14.442822, 2] nmbd/nmbd_logonnames.c:133(become_logon_server)
become_logon_server: Atempting to become logon server for workgroup SERVER2_PDC on subnet 192.168.1.2
[2012/04/17 16:01:14.442855, 0] nmbd/nmbd_logonnames.c:160(add_logon_names)
add_domain_logon_names:
Attempting to become logon server for workgroup SERVER2_PDC on subnet UNICAST_SUBNET
[2012/04/17 16:01:14.442910, 2] nmbd/nmbd_logonnames.c:133(become_logon_server)
become_logon_server: Atempting to become logon server for workgroup SERVER2_PDC on subnet UNICAST_SUBNET
[2012/04/17 16:01:14.442945, 0] nmbd/nmbd_become_dmb.c:337(become_domain_master_browser _wins)
become_domain_master_browser_wins:
Attempting to become domain master browser on workgroup SERVER2_PDC, subnet UNICAST_SUBNET.
[2012/04/17 16:01:14.442984, 0] nmbd/nmbd_become_dmb.c:351(become_domain_master_browser _wins)
become_domain_master_browser_wins: querying WINS server from IP 192.168.1.2 for domain master browser name SERVER2_PDC<1b> on workgroup SERVER2_PDC
[2012/04/17 16:01:14.443186, 2] nmbd/nmbd_become_dmb.c:179(become_domain_master_stage1)
become_domain_master_stage1: Becoming domain master browser for workgroup SERVER2_PDC on subnet UNICAST_SUBNET
[2012/04/17 16:01:19.114693, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success)
become_logon_server_success: Samba is now a logon server for workgroup SERVER2_PDC on subnet 192.168.1.2
[2012/04/17 16:01:19.410777, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 16:01:19.410870, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 16:01:19.410900, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 16:01:19.410942, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 16:01:19.410970, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 16:01:19.410997, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2
[2012/04/17 16:01:19.411026, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success)
become_logon_server_success: Samba is now a logon server for workgroup SERVER2_PDC on subnet UNICAST_SUBNET
[2012/04/17 16:01:19.411064, 2] nmbd/nmbd_nameregister.c:192(wins_registration_timeout)
wins_registration_timeout: WINS server 127.0.0.1 timed out registering IP 192.168.1.2


log.smbd


[2012/04/18 06:56:05, 0] smbd/server.c:1123(main)
smbd version 3.5.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2012/04/18 06:56:05.687499, 2] lib/tallocmsg.c:106(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2012/04/18 06:56:05.687542, 2] lib/dmallocmsg.c:77(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
[2012/04/18 06:56:05.687955, 2] param/loadparm.c:7859(do_section)
Processing section "[homes]"
[2012/04/18 06:56:05.688013, 2] param/loadparm.c:7859(do_section)
Processing section "[printers]"
[2012/04/18 06:56:05.688064, 2] param/loadparm.c:7859(do_section)
Processing section "[print$]"
[2012/04/18 06:56:05.688109, 2] param/loadparm.c:7859(do_section)
Processing section "[netlogon]"
[2012/04/18 06:56:05.688172, 2] param/loadparm.c:7859(do_section)
Processing section "[profiles]"
[2012/04/18 06:56:05.688239, 2] param/loadparm.c:7859(do_section)
Processing section "[arminius]"
[2012/04/18 06:56:05.688285, 2] param/loadparm.c:7859(do_section)
Processing section "[cad]"
[2012/04/18 06:56:05.688334, 2] param/loadparm.c:7859(do_section)
Processing section "[caX]"
[2012/04/18 06:56:05.688379, 2] param/loadparm.c:7859(do_section)
Processing section "[funde]"
[2012/04/18 06:56:05.688424, 2] param/loadparm.c:7859(do_section)
Processing section "[cim]"
[2012/04/18 06:56:05.688472, 2] param/loadparm.c:7859(do_section)
Processing section "[fotos]"
[2012/04/18 06:56:05.688518, 2] param/loadparm.c:7859(do_section)
Processing section "[groups]"
[2012/04/18 06:56:05.688584, 2] param/loadparm.c:7859(do_section)
Processing section "[backup]"
[2012/04/18 06:56:05.688629, 2] param/loadparm.c:7859(do_section)
Processing section "[public]"
[2012/04/18 06:56:05.713320, 2] lib/interface.c:340(add_interface)
added interface eth0 ip=fe80::223:54ff:fe84:abfb%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
[2012/04/18 06:56:05.713434, 2] lib/interface.c:340(add_interface)
added interface eth0 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0
[2012/04/18 06:56:05.812913, 2] lib/util_sock.c:880(open_socket_in)
bind failed on port 445 socket_addr = 0.0.0.0.
Error = Die Adresse wird bereits verwendet
[2012/04/18 06:56:05.824919, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Die Adresse wird bereits verwendet
[2012/04/18 06:56:05.825045, 2] lib/util_sock.c:880(open_socket_in)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Die Adresse wird bereits verwendet
[2012/04/18 06:56:05.825097, 0] smbd/server.c:500(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Die Adresse wird bereits verwendet
[2012/04/18 06:56:05.825395, 2] smbd/server.c:721(smbd_parent_loop)
waiting for connections
[2012/04/18 06:56:06.679449, 2] smbd/reply.c:554(reply_special)
netbios connect: name1=SERVER2 0x20 name2=WS11 0x0
[2012/04/18 06:56:06.679545, 2] smbd/reply.c:565(reply_special)
netbios connect: local=server2 remote=ws11, name type = 0
[2012/04/18 06:56:06.681526, 2] smbd/sesssetup.c:1391(setup_new_vc_session)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2012/04/18 06:56:06.682945, 2] smbd/sesssetup.c:1391(setup_new_vc_session)


In den Logfiles die richtige Stelle zu finden ist bei uns leider recht schwer, da wir ein sehr hohes Loglevel nutzen und unsere Logfiles dadurch JEDEN Dateizugriff loggen. :(

muell200
18.04.12, 09:26
In den Logfiles die richtige Stelle zu finden ist bei uns leider recht schwer, da wir ein sehr hohes Loglevel nutzen und unsere Logfiles dadurch JEDEN Dateizugriff loggen. :(

dann setzte den loglevel etwas runter...

schaue dir mal folgendes an: samba umlaute (http://www.tagol.de/blog/samba-umlaute-werden-falsch-dargestellt)

bzw. welches dateisystem, zeichensatz,.. hast du?
welche clients? bzw. wie sind die daten auf den samba server gekommen?