Официальная возможность получить лицензионный софт бесплатно.
Giveaway of the Day
Это не реклама!

Щелкните для получения прогноза по Биробиджану


четверг, 25 апреля 2013 г.

Копирование скрытых файлов

Дело житейское: понадобилось в скрипте скопировать один подкаталог в другой. Конкретно - одну из шар в самбе во временный каталог для хитрой обработки.

Угу:

cp -r * destdir/

А хрен там! Скопировалось всё кроме скрытых файлов и каталогов вида ".что-то-там".

Правильная команда:

cp -r source/. target/

или
cp -r ./. target/
если речь о текущем каталоге.

Не знаю, как это работает, но работает :-)

понедельник, 22 апреля 2013 г.

Милая подлянка от микрософта

На PDC w2k8r2 навесил DNS, всё штатно и пушисто.

А еще есть wpad... Выяснилось, что конкретно адрес wpad.мой.домен ни фига не резольвится, хотя в зоне прописан. Ответ нашел на микрософтовской же technet. Причем в штатной справке про global block list ни слова.

Кстати, кто найдет ошибку в скопированном с оригинала тексте? Она там есть.

The DNS Server role in Windows Server 2008 introduces a global query block list to reduce vulnerability associated with dynamic DNS updates. For more information, see About implementing WPAD.
If you want to use WPAD with DNS, note the following:
  • If WPAD entries are configured in DNS before the DNS server is upgraded in Windows Server 2008, no action is required.
  • If you configure or remove WPAD after you deploy the DNS server role on a server running Windows Server 2008, you must update the block list on all DNS servers that host the zones affected by the change. The affected zones are those where you registered the WPAD servers.
Use the dnscmd command-line tool to manage the global query block list. Open a command line prompt, and then do the following:
  1. To check whether the global query block is enabled, type the following:
    dnscmd /info /enableglobalqueryblocklist
  2. To display the host names in the current block list, type the following:
    dnscmd /info /globalqueryblocklist
  3. To disable the block list and ensure that the DNS Server service does not ignore queries for names in the block list, type the following:
    dnscmd /config /enableglobalqueryblocklist 0
  4. To enable the block list and ensure that the DNS Server service ignores queries for names in the block list, type the following:
    dnscmd /config /enableglobalqueryblocklist 0
  5. To remove all names from the block list, type the following:
    dnscmd /config /globalqueryblocklist
  6. To replace the current block list with a list of the names that you specify, type the following:
    dnscmd /config /globalqueryblocklist name [name]…
For more information and instructions, see the document "DNS Server Global Query Block List", available for download from Domain Name System at Microsoft TechNet.

вторник, 9 апреля 2013 г.

Samba: одинаковые UID/GID для доменных пользователей на разных серверах

Информация про одинаковые UID/GID на разных серверах Samba.
Смотрим по слову idmap_rid.

Копия на всякий случай под катом:

суббота, 6 апреля 2013 г.

SQUID: авторизация через AD

Явно предстоит этим заниматься, поэтому поискал информацию. Весьма поучительный материал в старых записях Лисяры. Надо будет поэкспериментировать, скорее всего, эту схему и использую.