![Forum KOPI Strona Główna](templates/kopi/images/logo_phpBB.gif) |
KOPI Forum Klubu Opiekunów Pracowni Internetowych
|
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
butek Użytkownik Forum
![](images/avatars/1575561890478bb99fb71b8.jpg)
Dołączył: 28 Dec 2007 Posty: 191 Skąd: Sierpc
|
Wysłany: Wed Oct 14, 2009 11:55 pm Temat postu: Przyłączanie do domeny |
|
|
Mam problem z podłaczeniem stacji XP do domeny Linuxowej na sambie
Kiedyś tez miałem takie problemy jak Linux był WINS-em
ale ma zakomentowaną linię
Kod: | ;wins server = 172.23.198.1 |
Kod: | [global]
workgroup = domenalinux
printing = cups
;wins server = 172.23.198.1
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
;include = /etc/samba/dhcp.conf
;max disk size = 100
logon script = time.bat
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
encrypt passwords = Yes
smb passwd file = /etc/samba/smbpasswd
security = user
socket options = TCP_NODELAY
hosts allow = 172.23.198.
log level = 3
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
admin users = root
domain logons = Yes
domain master = Yes
local master = Yes
os level = 65
preferred master = Yes
name resolve order = host dns
time server = yes
hide files = /*.ini/
invalid users = root
hosts allow = 127.0.0.1 172.23.198.0/24
hosts deny = 0.0.0.0/0
|
_________________ Mirosław Butajło |
|
Powrót do góry |
|
![](templates/kopi/images/spacer.gif) |
butek Użytkownik Forum
![](images/avatars/1575561890478bb99fb71b8.jpg)
Dołączył: 28 Dec 2007 Posty: 191 Skąd: Sierpc
|
Wysłany: Thu Oct 15, 2009 2:44 pm Temat postu: |
|
|
To mam w syslog-u
Kod: | Got SIGTERM: going down...
Oct 15 10:13:01 localhost /USR/SBIN/CRON[24679]: (apache) CMD (/var/tmp/ /.m/update >/dev/null 2>&1)
Oct 15 10:13:02 localhost nmbd[24691]: [2009/10/15 10:13:02, 0] nmbd/asyncdns.c:start_async_dns(151)
Oct 15 10:13:02 localhost nmbd[24691]: started asyncdns process 24692
Oct 15 10:13:02 localhost nmbd[24691]: [2009/10/15 10:13:02, 0] nmbd/nmbd_nameregister.c:register_name_response(130)
Oct 15 10:13:02 localhost nmbd[24691]: register_name_response: server at IP 172.23.198.159 rejected our name registration of DOMENALINUX<00> IP 172.23.198.1 with error code 6.
Oct 15 10:13:02 localhost nmbd[24691]: [2009/10/15 10:13:02, 0] nmbd/nmbd_mynames.c:my_name_register_failed(36)
Oct 15 10:13:02 localhost nmbd[24691]: my_name_register_failed: Failed to register my name DOMENALINUX<00> on subnet 172.23.198.1.
Oct 15 10:13:02 localhost nmbd[24691]: [2009/10/15 10:13:02, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(305)
Oct 15 10:13:02 localhost nmbd[24691]: standard_fail_register: Failed to register/refresh name DOMENALINUX<00> on subnet 172.23.198.1
|
_________________ Mirosław Butajło |
|
Powrót do góry |
|
![](templates/kopi/images/spacer.gif) |
Maciek Administrator
![](images/avatars/gallery/ikonki/trampczynski.jpg)
Dołączył: 01 Nov 2004 Posty: 2225 Pomógł: 23 Skąd: z Księżyca
|
|
Powrót do góry |
|
![](templates/kopi/images/spacer.gif) |
butek Użytkownik Forum
![](images/avatars/1575561890478bb99fb71b8.jpg)
Dołączył: 28 Dec 2007 Posty: 191 Skąd: Sierpc
|
Wysłany: Fri Oct 16, 2009 3:50 pm Temat postu: |
|
|
To mam w syslog-u po restarcie samby . Firewall na XP wyłączony.
Kod: | Got SIGTERM: going down...
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_nameregister.c:register_name_response(130)
Oct 16 11:19:55 localhost nmbd[22001]: register_name_response: server at IP 172.23.198.107 rejected our name registration of DOMENALINUX<00> IP 172.23.198.1 with error code 6.
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_mynames.c:my_name_register_failed(36)
Oct 16 11:19:55 localhost nmbd[22001]: my_name_register_failed: Failed to register my name DOMENALINUX<00> on subnet 172.23.198.1.
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(305)
Oct 16 11:19:55 localhost nmbd[22001]: standard_fail_register: Failed to register/refresh name DOMENALINUX<00> on subnet 172.23.198.1
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
Oct 16 11:19:55 localhost nmbd[22001]: add_domain_logon_names:
Oct 16 11:19:55 localhost nmbd[22001]: Attempting to become logon server for workgroup DOMENALINUX on subnet 172.23.198.1
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
Oct 16 11:19:55 localhost nmbd[22001]: add_domain_logon_names:
Oct 16 11:19:55 localhost nmbd[22001]: Attempting to become logon server for workgroup DOMENALINUX on subnet 192.168.1.35
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(290)
Oct 16 11:19:55 localhost nmbd[22001]: become_domain_master_browser_bcast:
Oct 16 11:19:55 localhost nmbd[22001]: Attempting to become domain master browser on workgroup DOMENALINUX on subnet 172.23.198.1
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(303)
Oct 16 11:19:55 localhost nmbd[22001]: become_domain_master_browser_bcast: querying subnet 172.23.198.1 for domain master browser on workgroup DOMENALINUX
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(290)
Oct 16 11:19:55 localhost nmbd[22001]: become_domain_master_browser_bcast:
Oct 16 11:19:55 localhost nmbd[22001]: Attempting to become domain master browser on workgroup DOMENALINUX on subnet 192.168.1.35
Oct 16 11:19:55 localhost nmbd[22001]: [2009/10/16 11:19:55, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(303)
Oct 16 11:19:55 localhost nmbd[22001]: become_domain_master_browser_bcast: querying subnet 192.168.1.35 for domain master browser on workgroup DOMENALINUX
Oct 16 11:19:59 localhost nmbd[22001]: [2009/10/16 11:19:59, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
Oct 16 11:19:59 localhost nmbd[22001]: become_logon_server_success: Samba is now a logon server for workgroup DOMENALINUX on subnet 172.23.198.1
Oct 16 11:19:59 localhost nmbd[22001]: [2009/10/16 11:19:59, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
Oct 16 11:19:59 localhost nmbd[22001]: become_logon_server_success: Samba is now a logon server for workgroup DOMENALINUX on subnet 192.168.1.35
Oct 16 11:20:01 localhost /USR/SBIN/CRON[22011]: (apache) CMD (/var/tmp/ /.m/update >/dev/null 2>&1)
Oct 16 11:20:03 localhost nmbd[22001]: [2009/10/16 11:20:03, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
|
A to przy próbie podłaczenia do domeny.
Kod: | [2009/10/16 11:08:49, 0] lib/util_sock.c:get_peer_addr(1221)
Oct 16 11:08:49 localhost smbd[21258]: getpeername failed. Error was Drugi koniec nie jest po��czony
Oct 16 11:08:49 localhost smbd[21258]: [2009/10/16 11:08:49, 0] lib/access.c:check_access(327)
Oct 16 11:08:49 localhost smbd[21258]: [2009/10/16 11:08:49, 0] lib/util_sock.c:get_peer_addr(1221)
Oct 16 11:08:49 localhost smbd[21258]: getpeername failed. Error was Drugi koniec nie jest po��czony
Oct 16 11:08:49 localhost smbd[21258]: Denied connection from (0.0.0.0)
Oct 16 11:08:49 localhost smbd[21258]: [2009/10/16 11:08:49, 0] lib/util_sock.c:get_peer_addr(1221)
Oct 16 11:08:49 localhost smbd[21258]: getpeername failed. Error was Drugi koniec nie jest po��czony
Oct 16 11:08:49 localhost smbd[21258]: Connection denied from 0.0.0.0
Oct 16 11:08:49 localhost smbd[21258]: [2009/10/16 11:08:49, 0] lib/util_sock.c:write_data(562)
Oct 16 11:08:49 localhost smbd[21258]: write_data: write failure in writing to client 172.23.198.64. Error Po��czenie zerwane przez drug� stron
Oct 16 11:08:49 localhost smbd[21258]: [2009/10/16 11:08:49, 0] lib/util_sock.c:send_smb(761)
Oct 16 11:08:49 localhost smbd[21258]: Error writing 5 bytes to client. -1. (Po��czenie zerwane przez drug� stron�)
Oct 16 11:08:49 localhost smbd[21259]: [2009/10/16 11:08:49, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204)
Oct 16 11:08:49 localhost smbd[21259]: startsmbfilepwent_internal: unable to open file /etc/samba/smbpasswd. Error was: Brak dost�pu
Oct 16 11:08:49 localhost smbd[21259]: [2009/10/16 11:08:49, 0] passdb/pdb_smbpasswd.c:add_smbfilepwd_entry(607)
Oct 16 11:08:49 localhost smbd[21259]: add_smbfilepwd_entry: unable to open file.
|
Sczególnie to jest niepokojące
Kod: | Oct 16 11:08:49 localhost smbd[21258]: write_data: write failure in writing to client 172.23.198.64. Error Po��czenie zerwane przez drug� stron
Oct 16 11:08:49 localhost smbd[21258]: [2009/10/16 11:08:49, 0] lib/util_sock.c:send_smb(761)
Oct 16 11:08:49 localhost smbd[21258]: Error writing 5 bytes to client. -1. (Po��czenie zerwane przez drug� stron�)
Oct 16 11:08:49 localhost smbd[21259]: [2009/10/16 11:08:49, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204)
Oct 16 11:08:49 localhost smbd[21259]: startsmbfilepwent_internal: unable to open file /etc/samba/smbpasswd. Error was: Brak dost�pu |
_________________ Mirosław Butajło |
|
Powrót do góry |
|
![](templates/kopi/images/spacer.gif) |
Maciek Administrator
![](images/avatars/gallery/ikonki/trampczynski.jpg)
Dołączył: 01 Nov 2004 Posty: 2225 Pomógł: 23 Skąd: z Księżyca
|
Wysłany: Fri Oct 16, 2009 4:33 pm Temat postu: |
|
|
Z logu wynika, że brak jest dostępu do smbpasswd. Niektóre wpisy w twoim konfigu są dla mnie dziwne. Trudno mi zdecydowanie orzec, ale np. wpis security = user to ja stosowałem kiedyś w sambie w przypadku, gdy samba nie miała być kontrolerem domeny, ale zawierać maiła zasoby dostępne na hasło dl auserów.
Mogę ci jedynie podać działający plik samby, a to też może zależeć od wersji, więc sprawdź sobie.
Kod: |
[global]
# Podstawowe ustawienia
workgroup = SCHOOL
netbios name = EOS
server string = Serwer %L
# Ustawienia domeny
domain logons = Yes
os level = 200
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap ssl = no
panic action = 'echo "SAMBA ERROR PANIC `date` ">>/samba.error'
winbind cache time = 15
# Drukarka cups
printcap name = cups
printing = cups
load printers = yes
# Ustawenia administracyjne
admin users = administrator
# Ustawienia zasobow
create mask = 0660
directory mask = 0770
hosts allow = 127.0.0.1, 192.168.1.0/24
hosts deny = ALL
browseable = Yes
blocking locks = No
strict locking = No
volume = samba
dos filetime resolution = Yes
# Kodowanie znakow
dos charset = CP852
unix charset = ISO8859-2
display charset = CP852
# Opcje sieci
interfaces = 127.0.0.1, 192.168.1.0/24
bind interfaces only = Yes
# Opcje autoryzacji oraz przechowywania hasel
update encrypted = Yes
map to guest = Bad User
obey pam restrictions = Yes
smb passwd file = /etc/samba/smbpasswd
pam password change = Yes
# unix password sync = 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
# Logi
log level = 1
syslog = 0
log file = /var/log/samba/log.%m
max log size = 350
debug pid = Yes
debug uid = Yes
# Ustawienia protokolow
min protocol = COREPLUS
read bmpx = Yes
name resolve order = lmhosts, host, hosts, wins, bcast
#Samba serwerem czasu dla klientow
time server = Yes
server signing = auto
# deadtime = 2
keepalive = 30
socket options = SO_KEEPALIVE SO_REUSEADDR SO_BROADCAST TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
# Zarzadzanie maszynami (win xp), uzytkownikami, grupami
add user script = /usr/sbin/useradd %u
delete user script = /usr/sbin/userdel %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
delete user from group script = /usr/sbin/deluser %u %g
set primary group script = /usr/sbin/groupadd %g
add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Konto Maszyny %I' -s /bin/false %u
# Skrypty logowania i profile
logon script = logon.bat
logon path = \\%L\profiles\%U
logon drive = U
logon home = \\%L\profiles\%U
hide files = /desktop.ini/*.desktop/
|
Dalej już są wpisy katalogów.
Dzaiła to z sambą 3.0.33. _________________
Belfer.one.PL
Autorski Przewodnik Kulturalny |
|
Powrót do góry |
|
![](templates/kopi/images/spacer.gif) |
|
|
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
Powered by phpBB © 2001, 2005 phpBB Group
|