[linux] samba a nefungujuce login skripty

Martin Kyrc martin.kyrc na gmail.com
Pátek Únor 20 08:43:23 CET 2009


logon.bat je samozrejme ascii text pretlaceny utilitou unix2dos (alebo 
aj vytvoreny priamo z windows-u), kvoli ukonceniam riadku.

netlogon bol RO, ale zmenil som ho na RW a nastavil prava na adresar cez 
windows policy, aby ho mohli spravovat 'domain admins'. pre ostatnych je 
samozrejme RO. zly pristup?

teraz som to vratil na 'standardne' nastavenie (755 na folder, 644 na 
logon.bat). vysledok rovnaky.

toto je v logu (testovaci user ferko, pouziva default nastavenie pre 
logon script, teda logon.bat, ktory je ulozeny ako 
/var/samba/netlogon/logon.bat):

   pc48 (192.168.1.48) connect to service ferko initially as user ferko 
(uid=47882, gid=513) (pid 32421)
[2009/02/20 08:21:51, 2] smbd/reply.c:reply_tcon_and_X(711)
   Serving ferko as a Dfs root
[2009/02/20 08:21:53, 2] smbd/open.c:open_file(352)
   ferko opened file logon.bat read=Yes write=No (numopen=1)
[2009/02/20 08:21:54, 2] smbd/open.c:open_file(352)
   ferko opened file logon.bat read=Yes write=No (numopen=2)
[2009/02/20 08:21:54, 2] smbd/close.c:close_normal_file(344)
   ferko closed file logon.bat (numopen=1)
[2009/02/20 08:21:55, 2] smbd/close.c:close_normal_file(344)
   ferko closed file logon.bat (numopen=0)
[2009/02/20 08:21:59, 1] smbd/service.c:close_cnum(1150)
   pc48 (192.168.1.48) closed connection to service netlogon

^^ podla tohto, sa naozaj zavola a aj otvori logon.bat. ale nevykona sa.

vratim sa vsak k povodnej otazke. v principe nerozumiem jednej veci. 
.bat (alebo .cmd) subor, je subor, ktory by mal os windows 'vykonat'. ak 
vsak takyto subor spustim 'doubleclick' subor sa nevykona, ale dostanem 
error informaciu (ktoru som uviedol v prvom maily). ak vsak rovnaky 
subor skopirujem lokalne (teda nie je na share disku), dokazem ho bez 
problemov 'vykonat'. ak share disk pripojim manualne, tak nasledne viem 
z cmd 'vykonat' tento subor (ale doubleclick z pripojeneho disku stale 
nefunguje).

H:\>z:
Z:\>logon.bat
Z:\>net use m: \\crete\apps
The command completed successfully.
Z:\>net use n: \\crete\data
The command completed successfully.
Z:\>

suvisi toto nejak s nastavenim samby, alebo je to problem klienta, teda 
pouziteho winxp?

mk


Další informace o konferenci linux