kanotix.com

Networking - Samba: Connection from XP doesn't work anymore aft..(SOLVED)

josk - 18.09.2006, 18:41 Uhr
Titel: Samba: Connection from XP doesn't work anymore aft..(SOLVED)
Hi,

I have problems with my Samba connection. I did dist-upgrade and upgraded mine Samba to version 3.0.23c-1. It seems that it doesnt work. I tried to downgrade version but testing repository contains same version of Samba.

So finally I downgraded my Samba using stable repository and now everything works like should be.

Code:
 apt-get install samba/stable samba-common/stable smbfs/stable smbclient/stable


Has anyone else problems with Samba 3.0.23c-1? And is there any tips how to get it work?

-josk
slh - 18.09.2006, 19:49 Uhr
Titel: RE: Samba: Connection from XP doesn
Never attempt to install packages for debian stable on kanotix, you will break your system - besides that the current samba versions are working fine.
josk - 18.09.2006, 22:06 Uhr
Titel:
I dont know what is wrong. I just upgraded again to 3.0.23c-1 and all I get is these lines to mine log:

Code:
[2006/09/18 23:28:36, 0] smbd/service.c:make_connection_snum(840)
  Can't become connected user!


Code:
Sep 18 23:28:36 sajaniemi smbd[4669]:   Can't become connected user!


I downgraded and everything works again. So I think mine conf files can be broken.

I have tried couple different conf-files:

SMB.CONF v1

Code:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2006/03/30 22:02:23

# Global parameters
[global]
unix charset = iso-8859-15
display charset = iso-8859-15
dos charset = 850
workgroup = TYORYHMA
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
load printers = no
printcap cache time = 60
printcap name = cups
dns proxy = no
ldap ssl = No
username = root, josk
valid users = root, josk
admin users = root, josk
write list = root, josk
hosts allow = 80.223.XX.XX (MY IP)
restrict anonymous = yes
domain master = no
preferred master = no
max protocol = NT
server signing = Auto

[shared]
comment = siirto
path = /shared
username = root,josk
valid users = root,josk
write list = root, jos
admin users = root,josk
case sensitive = no
msdfs proxy = no
read only = no


SMB.CONF v2

Code:
[global]
   workgroup = TYORYHMA
   netbios name = xxx.net (MY NETBIOS NAME)
   server string = host %h Version %v for %I
   security = user
   encrypt passwords = true
   map to guest = Bad User
   username map = /etc/samba/smbusers
   smb passwd file = /etc/samba/smbpasswd
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        unix charset = ISO8859-1
   printcap name = cups
   load printers = yes
   printing = cups
   guest ok = yes
   
[homes]
   comment = Home Directories
   writeable = yes
   browseable = no
   dos filetimes = true
   valid users = %S
   read-only = no
   
[shared]
        comment = siirto
        path = /shared
        username = root,josk
        valid users = root,josk
        write list = root, jos
        admin users = root,josk
        case sensitive = no
        msdfs proxy = no
        read only = no


Oh, and I found this one: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387076

-josk

ps. slh: I wont use stable repositories again. I hope I just get it mine samba works.
slh - 19.09.2006, 00:50 Uhr
Titel:
start "testparm" and fix all errors it complains about, ensure to only use one parameter for "passdb backend" (like "passdb backend = tdbsam").
josk - 19.09.2006, 12:54 Uhr
Titel:
slh hat folgendes geschrieben::
start "testparm" and fix all errors it complains about, ensure to only use one parameter for "passdb backend" (like "passdb backend = tdbsam").


I tried "testparm" and conf-file seems to be clean, no errors. Could someone post working smb.conf???
josk - 19.09.2006, 15:42 Uhr
Titel:
SOLVED!

Some how newer Samba version is little bitchy and didn't like my old smb.conf. I cannot be sure what line cause the trouble but here is working smb.conf if someone else have any problems, just use this conf-file.

smb.conf

Code:
[global]
unix charset = iso-8859-15
display charset = iso-8859-15
dos charset = 850
max log size = 50
   workgroup = YOUR_WORKGROUP_NAME
   netbios name = YOUR_MACHINE_NAME
   server string = host %h Version %v for %I
   security = user
   encrypt passwords = yes
   map to guest = Bad User
   username map = /etc/samba/smbusers
   smb passwd file = /etc/samba/smbpasswd
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   character set = ISO8859-1
   printcap name = cups
   load printers = no
   printing = cups
   restrict anonymous = yes
   username = YOUR_USER_NAME
   valid users = YOUR_USER_NAME
   admin users = YOUR_USER_NAME
   write list = YOUR_USER_NAME
   hosts allow = YOUR_IP
   
#IF YOU WANT TO SHARE HOME DIRECTORIES - now commented
#[homes]
#   comment = Home Directories
#   writeable = yes
#   browseable = no
#   dos filetimes = true
#   username = root,josk
#   valid users = root,josk
#   write list = root, josk
#   admin users = root,josk
#   read-only = no
   
[your_share_name]
   comment = your_comment
   path = /your_shared_folder
   writeable = yes
   browseable = no
   username = YOUR_USER_NAME
   valid users = YOUR_USER_NAME
   write list = YOUR_USER_NAME
   admin users = YOUR_USER_NAME
   case sensitive = no
   read only = no

trs12 - 24.09.2006, 06:04 Uhr
Titel: help please?
It would be good if I could get my problem solved as this did not help after I did a dist upgrade from Easter Preview, unfortunately I am still using that version (easter), when I upgraded I tried to use the smb.conf file posted (I changed the parts that needed to be personalized and samba would not let me connect to the shares) It takes me but a few minutes with my easter version to configure samba but it would be nice to have the latest versions of everything, so maybe, just possibly there might be the slightest possibility there is something wrong with the new version of samba, or not.
bluewater - 24.09.2006, 07:31 Uhr
Titel:
In Control Centre>Internet & Network>File Sharing:

click admin button and right hand side just over half way down are some buttons to

add/change/delete permissions
severin - 15.10.2006, 18:08 Uhr
Titel:
check out this one: http://kanotix.com/index.php?name=PNphp ... amba+msdfs
NuxIT - 18.10.2006, 10:39 Uhr
Titel:
Will your smb.conf file fix this error?

root@brits:/etc/samba# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd failed!

I keep getting daemon errors. Any ideas? I like RC6 but If I can't get samba working like in easter then shoot.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007