Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Обновление Gentoo и непонятки с Samba
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
sypersava
n00b
n00b


Joined: 25 Nov 2004
Posts: 15

PostPosted: Fri Mar 04, 2005 11:55 am    Post subject: Обновление Gentoo и непонятки с Samba Reply with quote

Добрый день всем!
У меня большие грабли...

Обновил Gentoo 2004.2 до 2004.3 (emerge sync)
Потом сделал emerge system, также обновил нужные мне пакеты, (--update samba, xorg...). Конечно пришлось поковыряться в конфигах. Что особо наковырял не помню, но в принципе машина работает.

Проблемы в общем такие:
- иногда (!) при включении машина долго думает при вводе логина и пароля, даже может не пустить (таймаут превышается). При заагрузке "вроде" все идет нормально, сбоев нет.
- Samba 3.0.10 периодически теряет машины (работает как PDC), иногда домен становится вообще не доступен.
конфиг:

Code:
# Global parameters
[global]
   dos charset = CP866
   unix charset = UTF8
   workgroup = NCDCZ
   server string = Samba Server %v
   map to guest = Bad User
   obey pam restrictions = Yes
   smb passwd file = /etc/samba/private/smbpasswd
   passdb backend = smbpasswd, guest
   pam password change = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
   username map = /etc/samba/smbusers
   unix password sync = Yes
   log file = /var/log/samba3/log.%m
   max log size = 50
   name resolve order = host lmhosts bcast wins
   time server = Yes
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M '%u'
   logon script = logon.bat
   logon path = \\%L\Profiles\%U\%m
   logon drive = L:
   logon home = \\%L\%U\.profile
   domain logons = Yes
   os level = 35
   preferred master = Yes
   domain master = Yes
   dns proxy = No
#   wins proxy = Yes
   wins support = Yes
   idmap uid = 10000-20000
   idmap gid = 10000-20000
#   winbind use default domain = Yes
   admin users = @ntadmins
   hosts allow = 192.168.0., 127.
   profile acls = Yes

[IPC$]
   path = /tmp
   hosts allow = 192.168.0.0/24, 127.0.0.1
   hosts deny = 0.0.0.0/0

[homes]
   comment = Home Directories
   username = %S
   read only = No
   create mask = 0640
   directory mask = 0750
   browseable = No

[Profiles]
   path = /samba/adm/profiles
   read only = No
   guest ok = Yes
   nt acl support = No
   browseable = No

[netlogon]
   comment = Network Logon Service
   path = /samba/adm/netlogon
   write list = @ntadmins
   guest ok = Yes
   share modes = No


Логи:
- smbd
Code:
[2005/03/04 08:11:10, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected


- выпавшая машина
Code:
[2005/03/04 08:09:21, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2005/03/04 08:09:34, 0] lib/util_sock.c:write_socket_data(430)
  write_socket_data: write failure. Error = Connection reset by peer
[2005/03/04 08:09:34, 0] lib/util_sock.c:write_socket(455)
  write_socket: Error writing 4 bytes to socket 5: ERRNO = Connection reset by peer
[2005/03/04 08:09:34, 0] lib/util_sock.c:send_smb(647)
  Error writing 4 bytes to client. -1. (Connection reset by peer)
[2005/03/04 08:13:05, 1] smbd/service.c:make_connection_snum(648)
  natali (192.168.0.5) connect to service Public initially as user ok777 (uid=1002, gid=408) (pid 7187)
[2005/03/04 09:02:11, 0] lib/util_sock.c:read_socket_data(384)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2005/03/04 09:02:11, 1] smbd/service.c:close_cnum(836)
  natali (192.168.0.5) closed connection to service Public


Очень бы хотелось услышать мнение людей по этому вопросу, а то у меня остался один выход - переставить систему с нуля...

Извините за здоровый сообщение 8)
Back to top
View user's profile Send private message
cha-chaynik
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2005
Posts: 115
Location: Russia, St.Petersburg

PostPosted: Sat Mar 05, 2005 10:57 am    Post subject: Reply with quote

Вот вам стабильно работающий smb.conf :

Code:

[global]
        netbios name = fs
        netbios aliases = viagra
        server string = Samba 3.011
        workgroup = OFFICE

        domain master = Yes
        domain logons = Yes
        ldap ssl = no
        admin users = root, @it, Administrator, RUSPWDomta1

        os level = 64
        wins support = Yes
        lm announce = No

        username level = 2
        logon script = logon.bat.lnk
        logon path = \\%L\profiles\%u
        logon drive = H:

        security = AD
        null passwords = yes
        encrypt passwords = yes
        paranoid server security = No
        password level = 4
        client schannel = yes
        server schannel = yes

        add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
        add machine script = /usr/sbin/useradd -d /dev/null -g 3102 -d /dev/null -s /bin/false -M %u
        add group script = /usr/sbin/groupadd %g
        delete user script = /usr/sbin/userdel %u
        delete user from group script = /usr/sbin/deluser %u %g
        delete group script = /usr/sbin/groupdel %g

        unix charset = KOI8-R
        dos charset = CP866

        log file = /var/log/samba/log.%m
        max log size = 5000
        debug level = 4

       socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072


        load printers = No
        show add printer wizard = No

[netlogon]
        path = /home/_usermanage/netlogon
        browseable = No

[Profiles]
        path = /home/_usermanage/profiles
        read only = No
        create mask = 0600
        directory mask = 0700
        browseable = No
        veto files = /*.avi/*.mp*

[homes]
        comment = Home Directories
        path = /home/%U/samba
        read only = No
        create mask = 0660
        directory mask = 0770
        veto oplock files = /*.xls/*.XLS/*.mdb/*.MDB/*.ldb/*.LDB/
        browseable = No
        veto files = /*.avi/*.mp*

[%U]
        comment = Home Directories
        path = /home/%U/samba
        admin users =
        read only = No
        create mask = 0660
        directory mask = 0770
        veto oplock files = /*.xls/*.XLS/*.mdb/*.MDB/*.ldb/*.LDB/
        veto files = /*.avi/*.mp*

[programs]
        path = /home/_usermanage/programs
        valid users = @stuff
        read only = No
        create mask = 0600
        directory mask = 0700
        browseable = No

[pub]
        path = /home/pub
        valid users = @stuff
        read only = No
        create mask = 0660
        directory mask = 0770
        browseable = No

[zp]
        path = /hdc/_usermanage/zp
        valid users = @stuff
        browseable = yes
        read only = No
        force user = posuser
        force group = stuff

[pos_sql]
        path = /hdc/possql
        browseable = no
        valid users = @stuff
        readonly = yes
        force user = posuser
        force group = stuff
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum