Mac OS X: Disable and enable the connect to server option in the finder menu
This function can easily restrict user access to other networks for sharing. Of course, it must be used together with other functions to better implement this function.
By default, this option is enabled:
You can also disable:
It is easy to implement.Program, Enter the following command to disable
Defaults write com. Apple. Finder prohibitconnectto true
|
Enter the following command to open
Defaults write com. Apple. Finder prohibitconnectto false |
After the command is executed, the finder will not immediately respond. You need to re-run the Finder to see that there are at least two methods to re-run the finder program.
- Is the GUI used by common users:
On the apple Icon menu, click force quit... or the combined key command + Option + ESC. In the displayed window, select the finder, click relaunch, and then confirm.
Or Press Control + option and then click the finder icon on the dock. For details, see:
- Command line:
Killall-hup finder & Open/system/library/coreservices/finder. app
|
Note later:
The above simple process only describes how to set the current user. For how to set other users, you can use loginhook (see my other articles on loginhook ).
Chapter), or edit the preferences file of the finder in the user template. The application scenarios of the two are different. The Administrator should select a method based on his or her own situation.