Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » В помощь системному администратору » Запрет на расшаривание папок в Windows 2000

Модерирует : lynx, Crash_Master, dg, emx, ShriEkeR

 Версия для печати • ПодписатьсяДобавить в закладки

Открыть новую тему     Написать ответ в эту тему

Nello



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Можно ли запретить юзерам расшаривать папки на своих компьютерах, а принтеры -разрешить?

Всего записей: 133 | Зарегистр. 23-04-2003 | Отправлено: 15:28 21-06-2003
Kristaliar



Advanced Member
Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору
Nello
Какая ОС ?


----------
Дело ясное, что дело темное.

Всего записей: 835 | Зарегистр. 29-08-2002 | Отправлено: 17:13 21-06-2003
sashac

Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Конечно. Смотри назначения прав пользователей в политиках - доменных и локальных.

Всего записей: 166 | Зарегистр. 23-05-2003 | Отправлено: 17:14 21-06-2003
Nello



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
sashac
А как этот параметр называется - я такого не нашла.  
Есть create permanent shared object, но это про общие папки АД....
 
Kristaliar
ОС Windows 2000

Всего записей: 133 | Зарегистр. 23-04-2003 | Отправлено: 12:41 23-06-2003
Andryuha

Advanced Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
смотри политику домена. права пользователей.

Всего записей: 1236 | Зарегистр. 27-07-2001 | Отправлено: 17:01 23-06-2003
Nello



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
"Ты не мудри, ты пальцем покажи"
В параметрах групповой политики я ничего не нашла.
Права пользователей - если юзер принадлежит локальной группе "Пользователи", то шаринга у него нет. При этом у него нет также многих других прав, что не устраивает (не может устанавливать программы, не все программы работают...). Хорошо было бы просто ограничить права у локальной группы "Администраторы" - чтобы осталось все, кроме шаринга.....

Всего записей: 133 | Зарегистр. 23-04-2003 | Отправлено: 11:08 24-06-2003
Asmodeus_13

Newbie
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Да уж, актуальная тема...
В реестре нашел ключик в политиках explorer-а на (вроде как) запрет расшаривания,но что-то не работает...(

Всего записей: 2 | Зарегистр. 06-05-2005 | Отправлено: 14:04 12-05-2005
ns56



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Расшаривание папок можно отключить через политики, но ТОЛЬКО для Win XP Pro... для Win2000 такие политики не действуют !
 
Но я придумал маневр. Можно отключить библиотеку  
, которая интегрируется в эксплоер и отвечает за шаринг.
 
начало статьи тут
xttp://www.freebyte.hut2.ru/p/?p=3
будем дописывать

Всего записей: 64 | Зарегистр. 05-12-2003 | Отправлено: 01:42 19-12-2005 | Исправлено: ns56, 06:16 19-12-2005
Nello



Junior Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Я нашла вот что:
Listing Shared Folders
Shared folders provide a convenient way for users to collaborate and to share information; unfortunately, they can also be a security hole, particularly for users who share out the entire contents of their hard drive or Windows folder. To help guard against the misuse (or overuse) of shared folders, you can use a script to enumerate all the shares on a computer.
Scripting Steps to List Shared Folders  
Listing 43 contains a script that lists all the folders being shared on a computer. To carry out this task, the script must perform the following steps:
1.    Create a variable (strComputer) to specify the computer name. Setting strComputer to a dot (.) will cause WMI to connect to the local computer, regardless of the computer name.
2.    Use GetObject to connect to the WMI service on the local computer.
3.    Use ExecQuery to select all the instances of the Win32_Share class. This returns a collection of all the shared folders on the computer.
4.    For each shared folder in the collection, echo the values for properties such as the shared folder name, the shared folder path, the maximum number of simultaneous connections allowed, and the shared folder type.
Listing 43   Enumerating Shared Folders

Код:
 
    strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" _
    & strComputer & "\root\cimv2")
Set colShares = objWMIService.ExecQuery("SELECT * FROM Win32_Share")
For Each objShare in colShares
    Wscript.Echo "Allow Maximum: " & objShare.AllowMaximum  
    Wscript.Echo "Caption: " & objShare.Caption  
    Wscript.Echo "Maximum Allowed: " & objShare.MaximumAllowed
    Wscript.Echo "Name: " & objShare.Name  
    Wscript.Echo "Path: " & objShare.Path  
    Wscript.Echo "Type: " & objShare.Type  
Next

And if you have decided that you do not want users to share folders on their computers, you can also use a script to remove the shares. This does not delete the folder and its contents, it merely “unshares” the folder.  
 
Scripting Steps to Delete Shared Folders on a Computer
Listing 44 contains a script that deletes all the shared folders on a computer. To carry out this task, the script must perform the following steps:
1.    Create a variable (strComputer) to specify the computer name. Setting strComputer to a dot (.) will cause WMI to connect to the local computer, regardless of the computer name.
2.    Use GetObject to connect to the WMI service on the local computer.
3.    Use ExecQuery to select all the instances of the Win32_Share class. To ensure the Administrative shares such as C$) are not included in the collection, use a Where clause that restricts the returned data to shared folders with a Type of 0 (standard shared folders).  
4.    For each shared folder in the collection, use the Delete method to stop the sharing of the folder.
Listing 44    Deleting Shared Folders

Код:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer &
    "\root\cimv2")
Set colShares = objWMIService.ExecQuery _
    ("Select * from Win32_Share Where Type = 0")
For Each objShare in colShares
    objShare.Delete
Next

Всего записей: 133 | Зарегистр. 23-04-2003 | Отправлено: 17:40 22-12-2005
SLynx



Newbie
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
В этой теме может уже и не актуально, но может кому еще пригодится:
 
Even users with RESTRICTED USER rights on their Windows 2000 or XP machines can create shares on their PC.  This is obviously a very bad idea for the vast majority of companies.  Microsoft has Knowledge Base article 300153 which explains how to remove the SECURITY tab (which can be accomplished via Group Policy if you wish) however, if there is nothing on how to remove the SHARING tab.  Microsoft's "Woody G" was good enough to dig up a solution.
 
What you see below is a modified version of 300153.  It is offered without guarantee and as always you should make sure you have good backups.  It did however work very well for me
 
To disable the Security tab from Windows 2000 Professional-based workstations that are members of a Windows 2000 domain:  
Start Active Directory Users and Computers.
 
Right-click the domain, and then click Properties.  
 
Click the Group Policy tab on the domain properties dialog box to view the default domain policy.  
 
Click New. New Group Policy Object should appear in the list of objects. Rename this Policy to Remove Security Tab. Make sure this policy is positioned directly under the default domain policy.  
 
Click Remove Security Tab, and then click Edit to start the Group Policy Editor.  
 
Expand Computer Configuration, Windows Settings, Security Settings, and then click Registry.  
 
Right-click in the left pane, and then click Add Key.  
 
Paste the following key in the text box, and then click OK:  
CLASSES_ROOT\CLSID\{1F2E5C40-9550-11CE-99D2-00AA006E086C}
 
Note that there may be a delay before you can proceed to the next step, and this is normal.
 
The Database Security Editor appears. You need to add the user or group that you want the Security tab to be removed from.  
 
Change the permission on this key for the users and/or groups that you added in the previous step to "Deny Read." This prevents the user from being able to instantiate the needed components to display the Security and Sharing tabs. Click OK twice to complete the settings and exit the Group Policy Editor.
 
Click New. New Group Policy Object should appear in the list of objects. Rename this Policy to Remove Sharing Tab. Make sure this policy is positioned directly under the default domain policy.  
 
Click Remove Security Tab, and then click Edit to start the Group Policy Editor.  
 
Expand Computer Configuration, Windows Settings, Security Settings, and then click Registry.  
 
Right-click in the left pane, and then click Add Key.  
 
Paste the following key in the text box, and then click OK:
CLASSES_ROOT\CLSID\{40dd6e20-7c17-11ce-a804-00aa003ca9f6}
 
Note that there may be a delay before you can proceed to the next step, and this is normal.  
 
The Database Security Editor appears. You need to add the user or group that you want the Security tab to be removed from.  
 
Change the permission on this key for the users and/or groups that you added in the previous step to "Deny Read." This prevents the user from being able to instantiate the needed components to display the Security and Sharing tabs. Click OK twice to complete the settings and exit the Group Policy Editor.

Всего записей: 8 | Зарегистр. 21-11-2006 | Отправлено: 15:25 14-12-2007
Открыть новую тему     Написать ответ в эту тему

Компьютерный форум Ru.Board » Компьютеры » В помощь системному администратору » Запрет на расшаривание папок в Windows 2000


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2025

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru