Skip to content

Commit e8930b5

Browse files
committed
Merge remote-tracking branch 'githubalt/admx_network_shares_samba_control' into Polkit_Group_policies
2 parents 45d33e9 + 4463d25 commit e8930b5

File tree

6 files changed

+230
-1
lines changed

6 files changed

+230
-1
lines changed

BaseALT.admx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<!-- (c) 2019 BaseALT, Ltd. -->
33
<policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
revision="1.1" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
@@ -134,6 +134,9 @@
134134
<parentCategory ref="ALT_Windows_Manager_Marco" />
135135
</category>
136136
<category name="ALT_Polkit" displayName="$(string.ALT_Polkit)" explainText="$(string.ALT_Polkit_Help)">
137+
<parentCategory ref="ALT_Services" />
138+
</category>
139+
<category name="ALT_SambaOptions" displayName="$(string.ALT_SambaOptions)" explainText="$(string.ALT_SambaOptions_Help)" >
137140
<parentCategory ref="ALT_Services" />
138141
</category>
139142
<category name="ALT_Udisks2" displayName="$(string.ALT_Udisks2)" explainText="$(string.ALT_Udisks2_Help)">

BaseALTControl.admx

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,76 @@
12541254
</item>
12551255
</enum>
12561256
</elements>
1257+
</policy>
1258+
<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">
1259+
<parentCategory ref="system:ALT_SambaOptions"/>
1260+
<supportedOn ref="system:SUPPORTED_AltP10"/>
1261+
<enabledValue>
1262+
<string>enabled</string>
1263+
</enabledValue>
1264+
<disabledValue>
1265+
<string>disabled</string>
1266+
</disabledValue>
1267+
</policy>
1268+
<policy class="Machine" displayName="$(string.role-usershares)" explainText="$(string.role-usershares_help)" key="Software\BaseALT\Policies\Control" valueName="role-usershares" name="role-usershares">
1269+
<parentCategory ref="system:ALT_SambaOptions"/>
1270+
<supportedOn ref="system:SUPPORTED_AltP10"/>
1271+
<enabledValue>
1272+
<string>enabled</string>
1273+
</enabledValue>
1274+
<disabledValue>
1275+
<string>disabled</string>
1276+
</disabledValue>
1277+
</policy>
1278+
<policy class="Machine" displayName="$(string.role-sambashare)" explainText="$(string.role-sambashare_help)" key="Software\BaseALT\Policies\Control" valueName="role-sambashare" name="role-sambashare">
1279+
<parentCategory ref="system:ALT_SambaOptions"/>
1280+
<supportedOn ref="system:SUPPORTED_AltP10"/>
1281+
<enabledValue>
1282+
<string>enabled</string>
1283+
</enabledValue>
1284+
<disabledValue>
1285+
<string>disabled</string>
1286+
</disabledValue>
1287+
</policy>
1288+
<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">
1289+
<parentCategory ref="system:ALT_SambaOptions"/>
1290+
<supportedOn ref="system:SUPPORTED_AltP10"/>
1291+
<enabledValue>
1292+
<string>enabled</string>
1293+
</enabledValue>
1294+
<disabledValue>
1295+
<string>disabled</string>
1296+
</disabledValue>
1297+
</policy>
1298+
<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">
1299+
<parentCategory ref="system:ALT_SambaOptions"/>
1300+
<supportedOn ref="system:SUPPORTED_AltP10"/>
1301+
<enabledValue>
1302+
<string>enabled</string>
1303+
</enabledValue>
1304+
<disabledValue>
1305+
<string>disabled</string>
1306+
</disabledValue>
1307+
</policy>
1308+
<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">
1309+
<parentCategory ref="system:ALT_SambaOptions"/>
1310+
<supportedOn ref="system:SUPPORTED_AltP10"/>
1311+
<enabledValue>
1312+
<string>enabled</string>
1313+
</enabledValue>
1314+
<disabledValue>
1315+
<string>disabled</string>
1316+
</disabledValue>
1317+
</policy>
1318+
<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">
1319+
<parentCategory ref="system:ALT_SambaOptions"/>
1320+
<supportedOn ref="system:SUPPORTED_AltP10"/>
1321+
<enabledValue>
1322+
<string>enabled</string>
1323+
</enabledValue>
1324+
<disabledValue>
1325+
<string>disabled</string>
1326+
</disabledValue>
12571327
</policy>
12581328
</policies>
12591329
</policyDefinitions>

en-US/basealt.adml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
<string id="ALT_Windows_Manager_Marco_Help">Windows manager Marco settings</string>
5959
<string id="ALT_Windows_Manager_Marco_Keyboard">Keyboard settings</string>
6060
<string id="ALT_Windows_Manager_Marco_Keyboard_Help">Keyboard settings</string>
61+
<string id="ALT_SambaOptions">Samba options</string>
62+
<string id="ALT_SambaOptions_Help">Samba options</string>
6163
<string id="ALT_Polkit">Polkit Policies</string>
6264
<string id="ALT_Polkit_Help">Polkit Policies</string>
6365
<string id="ALT_PackageKit">PackageKit permissions</string>

en-US/basealtcontrol.adml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,84 @@ Only root — Only superuser (root) is permitted to run /usr/bin/Xorg
741741
<string id="xorg-server_public">Any user</string>
742742
<string id="xorg-server_xgrp">Group xgrp</string>
743743
<string id="xorg-server_restricted">Only root</string>
744+
<string id="role-usershares">Access for members of the «users» group to Network Shares</string>
745+
<string id="role-usershares_help">Allow members of the «users» group to access Network Shares through the privileges of the «usershares» group.
746+
747+
Disabled - access to Network Share s is allowed only to members of the «usershares» group;
748+
749+
Enabled - the privileges of the «usershares» group to access Network Shares apply to users included in the «users» group.
750+
</string>
751+
<string id="role-sambashare">Access for members of the «sambashare» group to Network Shares</string>
752+
<string id="role-sambashare_help">Allow members of the «sambashare» group to access Network Shares.
753+
754+
Disabled - deny access to Network Shares to members of the «sambashare» group;
755+
756+
Enabled - allow access to Network Shares to members of the «sambashare» group;
757+
758+
Default - allow access to Network Shares to members of the «sambashare» group.
759+
</string>
760+
<string id="smb-conf-usershare-allow-guests">Guest access to Network Shares</string>
761+
<string id="smb-conf-usershare-allow-guests_help">Allow access to Network Shares without authentication.
762+
763+
The policy controls the «usershare allow guests» setting in smb.conf or usershares.conf, allowing the setting to be set to «yes» or «no». Since the parameter is security sensitive, its default value is «no».
764+
765+
Disabled - deny access to Network Shares without authentication;
766+
767+
Enabled - allow access to Network Shares without authentication;
768+
769+
Default - deny access to Network Shares without authentication.
770+
</string>
771+
<string id="smb-conf-usershare-allow-list">Permission to create Network Shares in root directory folders</string>
772+
<string id="smb-conf-usershare-allow-list_help">The policy defines the folders in the root directory where the user is allowed to create Network Shares.
773+
774+
If the absolute path to the user's Network Shares does not include one of the listed folders in its name, access to the Network Share will be denied.
775+
This limits the list of folders in the root directory in which it is possible to create user Network Shares. By default, the root folders are set (/home /srv /mnt /media /var).
776+
If a «usershare prefix deny list» is configured, the deny list is processed first, and then the allow list.
777+
The policy controls the «usershare prefix allow list» setting in the usershares.conf file - opening or closing this setting with a comment.
778+
779+
Disabled - prohibit the creation of Network Shares in system folders from the list;
780+
781+
Enabled - allow creation of Network Shares in system folders from the list.
782+
</string>
783+
<string id="smb-conf-usershare-deny-list">Prohibit the creation of Network Shares in folders in the root directory</string>
784+
<string id="smb-conf-usershare-deny-list_help">The policy defines folders in the root directory where the user is not allowed to create Network Shares.
785+
786+
If the absolute path to the user's public directory starts with one of the listed folders, access to the public directory in that folder will be denied.
787+
Any other path that does not contain one of the listed folders in the name will allow the creation of the Network Shares.
788+
This limits the list of folders in the root directory in which it is possible to create user Network Shares. By default, the root folders are set (/etc /dev /sys /proc).
789+
If a «usershare prefix deny list» and a «usershare prefix allow list» are configured, the deny list is processed first, and then the allow list.
790+
The policy controls the «usershare prefix deny list» setting in the usershares.conf file - opening or closing this setting with a comment.
791+
792+
Disabled - allow creation of Network Shares in system folders from the list;
793+
794+
Enabled - prohibit the creation of Network Shares in system folders from the list.
795+
</string>
796+
<string id="smb-conf-usershare-owner-only">Access to Network Shares of other users</string>
797+
<string id="smb-conf-usershare-owner-only_help">The policy controls the user's right to access a Network Shares if the user is not the owner of that directory.
798+
799+
If the policy is enabled, the system will check the access rights to the Network Shares and deny access to those users who do not own it.
800+
If the policy is disabled, this check will not be performed and any directory can be shared, regardless of who owns it. The policy changes the «usershare owner only» setting in the usershares.conf file.
801+
802+
Disabled - open access to Network Shares of other users;
803+
804+
Enabled - restrict public access, leaving access only to Network Shares owned by the user;
805+
806+
Default - access to shared directories is limited - only those Network Shares that he created are available to the user.
807+
</string>
808+
<string id="smb-conf-usershares">Limit on Network Shares</string>
809+
<string id="smb-conf-usershares_help">Controls the number of Network Shares that users who belong to the usershares group can create.
810+
811+
By default, the «usershare max shares» setting is zero, and user shares are ignored.
812+
The usershares directory is for creating Network Shares. The usershares directory is owned by the usershares group and the users belonging to this group.
813+
The «usershare max shares» parameter sets the number of shares that the specified users can create.
814+
The policy controls the «usershare max shares» setting in the smb.conf file.
815+
816+
Disabled - disable access to the user's Network Shares; «usershare max shares» parameter = 0;
817+
818+
Enabled - enable access to the user's Network Shares; «usershare max shares» parameter = 100;
819+
820+
Default - disable access to Network Shares the parameter «usershare max shares» is closed by a comment.
821+
</string>
744822
</stringTable>
745823
<presentationTable>
746824
<presentation id="at">

ru-RU/basealt.adml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
<string id="ALT_Windows_Manager_Marco_Help">Настройки оконного менеджера Marco</string>
5959
<string id="ALT_Windows_Manager_Marco_Keyboard">Настройки клавиатуры</string>
6060
<string id="ALT_Windows_Manager_Marco_Keyboard_Help">Настройки клавиатуры</string>
61+
<string id="ALT_SambaOptions">Samba опции</string>
62+
<string id="ALT_SambaOptions_Help">Samba опции</string>
6163
<string id="ALT_Polkit">Управление Polkit правилами</string>
6264
<string id="ALT_Polkit_Help">правление Polkit правилами</string>
6365
<string id="ALT_PackageKit">Разрешения PackageKit</string>

0 commit comments

Comments
 (0)