Samba макро-подстановки

Написал admin . Опубликовано в Unix просмотров 238

Так себеПойдетХорошоПонравилосьОтличный пост (No Ratings Yet)
Загрузка...

Список макросов Samba, которые можно использовать при конфигурации шар и самого сервера.

%S = the name of the current service, if any.
%P = the root directory of the current service, if any.
%u = user name of the current service, if any.
%g = primary group name of %u.
%U = session user name (the user name that the client wanted, not necessarily the same as the one they got).
%G = primary group name of %U.[pwal id="16165987" description=""]
%H = the home directory of the user given by %u.
%v = the Samba version.
%h = the internet hostname that Samba is running on.
%m = the NetBIOS name of the client machine (very useful).
%L = the NetBIOS name of the server. This allows you to change your config based on what the client calls you. Your server can have a "dual personality".
%M = the internet name of the client machine.
%N = the name of your NIS home directory server. This is obtained from your NIS auto.map entry. If you have not compiled Samba with the --with-automount option then this value will be the same as %L.
%p = the path of the service's home directory, obtained from your NIS auto.map entry. The NIS auto.map entry is split up as "%N:%p".
%R = the selected protocol level after protocol negotiation. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1.
%d = The process id of the current server process.
%a = the architecture of the remote machine. Only some are recognized, and those may not be 100% reliable. It currently recognizes Samba, WfWg, WinNT and Win95. Anything else will be known as "UNKNOWN". If it gets it wrong then sending a level 3 log to [email protected] should allow it to be fixed.
%I = The IP address of the client machine.
%T = the current date and time.

[/pwal]

Похожие статьи:

Метки: , ,

Trackback from your site.

Leave a comment