Skip to content

Commit e062089

Browse files
author
Anton Abramov
committed
Added new admx for samba usershare controls
1 parent 74daf6b commit e062089

File tree

3 files changed

+196
-0
lines changed

3 files changed

+196
-0
lines changed

BaseALTGroupPolicies.admx

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<category name="ALT_GPLocalUsers" displayName="$(string.ALT_GPLocalUsers)" explainText="$(string.ALT_GPLocalUsers_Help)" >
1818
<parentCategory ref="ALT_GroupPolicies" />
1919
</category>
20+
<category name="ALT_GPNetworkShares" displayName="$(string.ALT_GPNetworkShares)" explainText="$(string.ALT_GPNetworkShares_Help)" >
21+
<parentCategory ref="ALT_GroupPolicies" />
22+
</category>
2023
</categories>
2124

2225
<policies>
@@ -330,5 +333,75 @@
330333
<decimal value="0"/>
331334
</disabledValue>
332335
</policy>
336+
<policy class="Machine" displayName="$(string.role-usershares)" explainText="$(string.role-usershares_help)" key="Software\BaseALT\Policies\Control" valueName="role-usershares" name="role-usershares">
337+
<parentCategory ref="ALT_GPNetworkShares"/>
338+
<supportedOn ref="system:SUPPORTED_AltP10"/>
339+
<enabledValue>
340+
<string>enabled</string>
341+
</enabledValue>
342+
<disabledValue>
343+
<string>disabled</string>
344+
</disabledValue>
345+
</policy>
346+
<policy class="Machine" displayName="$(string.role-sambashare)" explainText="$(string.role-sambashare_help)" key="Software\BaseALT\Policies\Control" valueName="role-sambashare" name="role-sambahare">
347+
<parentCategory ref="ALT_GPNetworkShares"/>
348+
<supportedOn ref="system:SUPPORTED_AltP10"/>
349+
<enabledValue>
350+
<string>enabled</string>
351+
</enabledValue>
352+
<disabledValue>
353+
<string>disabled</string>
354+
</disabledValue>
355+
</policy>
356+
<policy class="Machine" displayName="$(string.smb-conf-usershare-allow-guests)" explainText="$(string.smb-conf-usershare-allow-guests_help)" key="Software\BaseALT\Policies\Control" valueName="smb-conf-usershare-allow-guests" name="smb-conf-usershare-allow-guests">
357+
<parentCategory ref="ALT_GPNetworkShares"/>
358+
<supportedOn ref="system:SUPPORTED_AltP10"/>
359+
<enabledValue>
360+
<string>enabled</string>
361+
</enabledValue>
362+
<disabledValue>
363+
<string>disabled</string>
364+
</disabledValue>
365+
</policy>
366+
<policy class="Machine" displayName="$(string.smb-conf-usershare-allow-list)" explainText="$(string.smb-conf-usershare-allow-list_help)" key="Software\BaseALT\Policies\Control" valueName="smb-conf-usershare-allow-list" name="smb-conf-usershare-allow-list">
367+
<parentCategory ref="ALT_GPNetworkShares"/>
368+
<supportedOn ref="system:SUPPORTED_AltP10"/>
369+
<enabledValue>
370+
<string>enabled</string>
371+
</enabledValue>
372+
<disabledValue>
373+
<string>disabled</string>
374+
</disabledValue>
375+
</policy>
376+
<policy class="Machine" displayName="$(string.smb-conf-usershare-deny-list)" explainText="$(string.smb-conf-usershare-deny-list_help)" key="Software\BaseALT\Policies\Control" valueName="smb-conf-usershare-deny-list" name="smb-conf-usershare-deny-list">
377+
<parentCategory ref="ALT_GPNetworkShares"/>
378+
<supportedOn ref="system:SUPPORTED_AltP10"/>
379+
<enabledValue>
380+
<string>enabled</string>
381+
</enabledValue>
382+
<disabledValue>
383+
<string>disabled</string>
384+
</disabledValue>
385+
</policy>
386+
<policy class="Machine" displayName="$(string.smb-conf-usershare-owner-only)" explainText="$(string.smb-conf-usershare-owner-only_help)" key="Software\BaseALT\Policies\Control" valueName="smb-conf-usershare-owner-only" name="smb-conf-usershare-owner-only">
387+
<parentCategory ref="ALT_GPNetworkShares"/>
388+
<supportedOn ref="system:SUPPORTED_AltP10"/>
389+
<enabledValue>
390+
<string>enabled</string>
391+
</enabledValue>
392+
<disabledValue>
393+
<string>disabled</string>
394+
</disabledValue>
395+
</policy>
396+
<policy class="Machine" displayName="$(string.smb-conf-usershares)" explainText="$(string.smb-conf-usershares_help)" key="Software\BaseALT\Policies\Control" valueName="smb-conf-usershares" name="smb-conf-usershares">
397+
<parentCategory ref="ALT_GPNetworkShares"/>
398+
<supportedOn ref="system:SUPPORTED_AltP10"/>
399+
<enabledValue>
400+
<string>enabled</string>
401+
</enabledValue>
402+
<disabledValue>
403+
<string>disabled</string>
404+
</disabledValue>
405+
</policy>
333406
</policies>
334407
</policyDefinitions>

en-US/basealtgrouppolicies.adml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,66 @@
108108
<string id="gpupdate_scripts_users_applier">Script execution module for users</string>
109109
<string id="gpupdate_scripts_users_applier_help">This policy enables disables the scripting group policy execution engine for users.</string>
110110

111+
<string id="ALT_GPNetworkShares">Access rights to network folders</string>
112+
<string id="ALT_GPNetworkShares_Help">Management of user access rights to shared network resources</string>
113+
114+
<string id="role-usershares">User access to network folders</string>
115+
<string id="role-usershares_help">Allow members of the «users» group to use Samba network shares through the privileges of the «usershares» group
116+
117+
Disabled - Only members of the «usershares» group can access Samba network shares
118+
119+
Enabled - privileges of the «usershares» group are assigned to the «users» group - users belonging to the «users» group will have access to Samba network shares
120+
</string>
121+
<string id="role-sambashare">Access of the «sambashare» group members to network folders</string>
122+
<string id="role-sambashare_help">Allow members of the «sambashare» group to use Samba network shares through the privileges of the «usershares» group
123+
124+
Disabled - Only members of the «usershares» group can access Samba network shares
125+
126+
Enabled - privileges of the «usershares» group are assigned to the «users» group - users belonging to the «users» group will have access to Samba network shares
127+
128+
Default: Allow users in the «sambashare» group to use samba shares if they are in the «users» group
129+
</string>
130+
<string id="smb-conf-usershare-allow-guests">Guest access to network folders</string>
131+
<string id="smb-conf-usershare-allow-guests_help">Allow guest access to the user's network shares. This control changes the "usershare allow guests" parameter in smb.conf or usershares.conf
132+
133+
Disabled: deny guest access to network folders
134+
135+
Enabled: allow guest access to network folders
136+
137+
Default: deny guest access to network folders
138+
</string>
139+
<string id="smb-conf-usershare-allow-list">Allow user to create network shares in system directories</string>
140+
<string id="smb-conf-usershare-allow-list_help">Allow user to create network shares in system directories (/home /srv /mnt /media /var); The policy changes the «usershare prefix allow list» parameter in usershares.conf - opening it or closing it with a comment.
141+
142+
Disabled: prevent the creation of network folders in system directories (/home /srv /mnt /media /var);
143+
144+
Enabled: allow creation of network folders in system directories (/home /srv /mnt /media /var);
145+
</string>
146+
<string id="smb-conf-usershare-deny-list">Prevent user from creating network folders in system directories</string>
147+
<string id="smb-conf-usershare-deny-list_help">Prevent user from creating network folders in system directories (/etc /dev /sys /proc); The policy changes the «usershare prefix deny list» parameter in usershares.conf - opening it or closing it with a comment.
148+
149+
Disabled: prevent the creation of network folders in system directories (/etc /dev /sys /proc);
150+
151+
Enabled: allow creation of network folders in system directories (/etc /dev /sys /proc);
152+
</string>
153+
<string id="smb-conf-usershare-owner-only">Access to own network folders</string>
154+
<string id="smb-conf-usershare-owner-only_help">Access to own network folders. Determines samba restriction of only directories owned by the sharing user can be shared by usershares. The policy changes the «usershare owner only» setting in usershares.conf.
155+
156+
Disabled: allow access to network folders;
157+
158+
Enabled: limit public access, leaving access only to network folders owned by the user;
159+
160+
Default: limit public access, leaving access only to network folders owned by the user;
161+
</string>
162+
<string id="smb-conf-usershares">Accessing network folders via smb.conf</string>
163+
<string id="smb-conf-usershares_help">Accessing network folders via smb.conf. Enable network sharing in Samba via the «usershare max shares» setting. The policy changes the «usershare max shares» setting in smb.conf
164+
165+
Disabled: disable network folder sharing in Samba; parameter usershare max shares = 0;
166+
167+
Enabled: enable network folder sharing in Samba; parameter usershare max shares = 100;
168+
169+
Default: disable sharing network folders; «usershare max shares» parameter setting closed by comment;
170+
</string>
111171
</stringTable>
112172
</resources>
113173
</policyDefinitionResources>

ru-RU/basealtgrouppolicies.adml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,69 @@
108108
<string id="gpupdate_scripts_user_applier">Модуль выполнения сценариев для пользователей</string>
109109
<string id="gpupdate_scripts_user_applier_help">Эта политика включает/отключает модуль выполнения групповых политик сценариев для пользователей.</string>
110110

111+
<string id="ALT_GPNetworkShares">Доступ к сетевым папкам</string>
112+
<string id="ALT_GPNetworkShares_Help">Управление правами доступа к общим сетевым папкам</string>
113+
114+
<string id="role-usershares">Доступ членам группы «users» к сетевым папкам</string>
115+
<string id="role-usershares_help">Разрешение членам группы «users» на доступ к сетевым папкам через привилегии группы «usershares».
116+
117+
Выключено - доступ к сетевым папкам разрешен только членам группы «usershares»;
118+
119+
Включено - привилегии группы «usershares» на доступ к сетевым папкам распространяются пользователей, входящие в группу «users».
120+
</string>
121+
<string id="role-sambashare">Доступ членам группы «sambashare» к сетевым папкам</string>
122+
<string id="role-sambashare_help">Разрешение членам группы «sambashare» на доступ к сетевым папкам.
123+
124+
Выключено - запретить доступ к сетевым папкам членам группы «sambashare»;
125+
126+
Включено - разрешить доступ к сетевым папкам членам группы «sambashare»;
127+
128+
По умолчанию - разрешить доступ к сетевым папкам членам группы «sambashare».
129+
</string>
130+
<string id="smb-conf-usershare-allow-guests">Гостевой доступ к сетевым папкам</string>
131+
<string id="smb-conf-usershare-allow-guests_help">Разрешить гостевой доступ к пользовательским сетевым папкам. Политика управляет параметром "usershare allow guests" в smb.conf или usershares.conf.
132+
133+
Выключено - запретить гостевой доступ к сетевым папкам;
134+
135+
Включено - разрешить гостевой доступ к сетевым папкам;
136+
137+
По умолчанию - запретить гостевой доступ к сетевым папкам.
138+
</string>
139+
<string id="smb-conf-usershare-allow-list">Права на создание сетевых папок в каталогах (/home /srv /mnt /media /var)</string>
140+
<string id="smb-conf-usershare-allow-list_help">Разрешить пользователю создавать сетевые папки в системных каталогах (/home /srv /mnt /media /var). Политика управляет параметром «usershare prefix allow list» в файле usershares.conf - открывая или закрывая его комментарием.
141+
142+
Выключено - запретить создание сетевых папок в системных каталогах (/home /srv /mnt /media /var);
143+
144+
Включено: разрешить создание сетевых папок в системных каталогах (/home /srv /mnt /media /var).
145+
</string>
146+
<string id="smb-conf-usershare-deny-list">Запрет на создание сетевых папов в каталогах (/etc /dev /sys /proc)</string>
147+
<string id="smb-conf-usershare-deny-list_help">Запрещает пользователю создавать сетевые папки в системных каталогах (/etc /dev /sys /proc). Политика управляет параметром «usershare prefix deny list» в файле usershares.conf - открывая или закрывая его комментарием.
148+
149+
Выключено - разрешить создание сетевых папок в системных каталогах (/etc /dev /sys /proc).
150+
151+
Включено - запретить создание сетевых папок в системных каталогах (/etc /dev /sys /proc);
152+
153+
</string>
154+
<string id="smb-conf-usershare-owner-only">Доступ к личным сетевым папкам</string>
155+
<string id="smb-conf-usershare-owner-only_help">Доступ к личным сетевым папкам.
156+
157+
Политика разрешает общий доступ только к тем сетевым папкам, которые принадлежат пользователю. Политика меняет параметр «usershare owner only» в файле usershares.conf.
158+
159+
Выключено - открыть доступ к сетевым папкам;
160+
161+
Включено - ограничить общий доступ, оставив доступ только к сетевым папкам, принадлежащим пользователю;
162+
163+
По умолчанию - доступ к сетевым папкам ограничен - пользователю доступны только те сетевые папки, которые он создал.
164+
</string>
165+
<string id="smb-conf-usershares">Доступ к сетевым папкам через smb.conf</string>
166+
<string id="smb-conf-usershares_help">Доступ к сетевым папкам через smb.conf. Включение общего доступа к сетевым папкам через параметр «usershare max shares». Политика управляет параметром «usershare max shares» в файле smb.conf.
167+
168+
Выключено - отключить общий доступ к сетевым папкам в Samba; параметр «usershare max shares» = 0;
169+
170+
Включено - включить общий доступ к сетевым папкам в Samba; параметр «usershare max shares» = 100;
171+
172+
По умолчанию - отключить общий доступ к сетевым папкам; параметр «usershare max shares» закрыт комментарием.
173+
</string>
111174
</stringTable>
112175
</resources>
113176
</policyDefinitionResources>

0 commit comments

Comments
 (0)