- Appendix F. Running Samba on Mac OS X Server
- Setup Procedures
- Sharing Files
- Figure F-1. Workgroup Manager: Share Points and Windows File Settings
- Sharing Printers
- Figure F-2. Server Settings: Print Service
- Configuring and Activating Services
- Figure F-3. Server Settings: Windows Services
- Password Server
- Activating Password Server
- Figure F-4. Password Server authentication protocols
- Enabling Password Server
- Figure F-5. Workgroup Manager: Enabling Password Server authentication
- Monitoring Services
- Figure F-6. Server Status: Windows Services
- Configuration Details
- Figure F-7. NetInfo Manager: SMBServer properties
- Table F-1. Samba configuration settings in Mac OS X Server
- SAMBA настройка подключения Windows, Mac OS X и Android
- SAMBA НАСТРОЙКА В АНДРОИДЕ
- ПРИЛОЖЕНИЯ ДЛЯ ANDROID
- Настройте CX Explorer или X-Plore с помощью SAMBA
- Подготовка ПК с Windows
- ПОДКЛЮЧАЕМ СЕТЬ SAMBA В MAC OS X.
- Настройка общего доступа к файлам на Mac
- Настройка общего доступа к файлам
- Настройка дополнительных параметров общего доступа к файлам
Appendix F. Running Samba on Mac OS X Server
Setup Procedures
The first thing to note is that the procedure described in Chapter 2 using System Preferences to enable Samba does not apply to Mac OS X Server. Unlike Mac OS X, the Sharing pane of System Preferences does not include an option to turn on Windows File Sharing. Instead, there is a set of applications to configure, activate, and monitor services: Workgroup Manager, Server Settings, Server Status, and Open Directory Assistant, all located in the directory /Applications/Utilities.
In addition to being installed with Mac OS X Server, these and other administrative applications are included on a separate installation CD-ROM sold with the operating system. They can be used to manage Mac OS X Server systems remotely from any Mac OS X machine.
Briefly, the procedure for setting up SMB file and printer shares is as follows:
Designate share points in Workgroup Manager for file sharing.
Set up print queues in Server Settings for printer sharing, and activate Printer Service.
Configure and activate Windows Services in Server Settings.
Activate Password Server and enable SMB authentication in Open Directory Assistant.
Enable Password Server authentication for user accounts in Workgroup Manager.
Monitor file and print services with Server Status.
Sharing Files
To designate a share point, launch Workgroup Manager. You will be prompted for the local or remote server’s hostname or IP address, as well as for a username and password; this process is required by all the Mac OS X Server administrative applications. Once Workgroup Manager is open, click the Sharing button in the toolbar. The list on the left, under the Share Points tab, displays currently defined share points. To add a new one, click the All tab, and navigate to the folder you want to share.
On the right, under the General tab, check the box labeled Share this item and its contents, change the ownership and permissions if desired, then click the Save button. Next, under the Protocols tab, select Windows File Settings from the pop-up menu, and ensure that the box labeled Share this item using SMB is checked. At this point, you can also decide whether to allow guest access to the share, change the name of the share displayed to SMB clients, or set permissions for files and folders created by SMB clients. Click the Save button when you’re finished making changes. See Figure F-1.
Figure F-1. Workgroup Manager: Share Points and Windows File Settings
Sharing Printers
Figure F-2. Server Settings: Print Service
Server Settings will make local printers available for sharing only if they’re PostScript compatible. Unfortunately, many printers, including consumer-grade USB inkjet printers, aren’t. If you want to make one of these printers available to SMB clients, you can still add the share to /etc/smb.conf yourself with a text editor. See «Rolling Your Own» later in this chapter for instructions and caveats related to making manual changes to smb.conf.
Configuring and Activating Services
Figure F-3. Server Settings: Windows Services
The Windows Services Access tab offers options to enable guest access and limit the number of simultaneous client connections; under the Logging tab, you can specify the verbosity of your logging. With options under the Neighborhood tab, you can configure your machine as a WINS client or server or have it provide browser services locally or across subnets.
Password Server
If you need to use Authentication Manager, use the following procedure to enable it:
On every machine hosting a domain that will bind into the NetInfo hierarchy, execute the command tim -init -auto tag for each domain, where tag is the name of the domain’s database.
When prompted, provide a password to be used as the encryption key for the domain. This key is used to decrypt the Windows passwords and is stored in an encrypted file readable only by root, /var/db/netinfo/.tag.tim.
Set AUTHSERVER=-YES- in /etc/hostconfig.
Start Authentication Manager by invoking tim. This is also executed during the boot sequence by the AuthServer startup item.
Reset the password of each user requiring SMB client access. In Mac OS X Server 10.2 or later, make sure the user is set up for Basic authentication, not Password Server authentication.
When you’ve finished configuring Windows Services, click the Save button, then click the Windows icon in Server Settings, and select Start Windows Services. This starts the Samba daemons, enabling access from SMB clients.
Activating Password Server
To enable Password Server or merely check its settings, start the Open Directory Assistant. Unless you wish to change any of the settings, just click the right arrow button in the lower-right corner of the window until you get to the first Security step. At this point, activate Password Server by selecting the option marked Password and authentication information will be provided to other systems. The next step displays the main administrative account, and the one after that gives you a choice of authentication protocols to enable (see Figure F-4). Make sure that SMB-NT is checked, and check SMB-Lan Manager if you have Windows 95/98/Me or older clients. The final step saves the Password Server configuration and prompts you to reboot.
Figure F-4. Password Server authentication protocols
Enabling Password Server
Figure F-5. Workgroup Manager: Enabling Password Server authentication
Monitoring Services
Figure F-6. Server Status: Windows Services
Configuration Details
Instead, a process named sambadmind generates /etc/smb.conf from the configuration specified in Server Settings and Workgroup Manager and handles starting and restarting the Samba daemons as necessary. The sambadmind process is in turn monitored by watchdog, which keeps an eye on certain processes and restarts those which fail. The watchdog utility is configured in /etc/watchdog.conf, a file similar to a System V inittab, which specifies how the services under watchdog‘s purview are to be treated. For example, the line for sambadmind looks like this:
Using a watchdog-monitored process such as sambadmind to start the Samba daemons, instead of a one-time execution of a startup item, results in more reliable service. In Mac OS X Server, if a Samba daemon dies unexpectedly, it is quickly restarted. (Examples of other services monitored by watchdog are Password Server, Print Service, and the Server Settings daemon that allows remote management.)
There’s another wrinkle in Mac OS X Server: the Samba configuration settings are not written directly to /etc/smb.conf, as they are in the non-Server version of Mac OS X. Instead, they’re stored in the server’s local Open Directory domain,[1] from which sambadmind retrieves them and regenerates smb.conf. For example, the Samba global parameters are stored in /config/SMBServer (see Figure F-7). Share point information is also kept in Open Directory, under /config/SharePoints, while CUPS takes responsibility for printer configuration in /etc/cups/printers.conf (also creating stub entries used by Samba in /etc/printcap).
Figure F-7. NetInfo Manager: SMBServer properties
Table F-1 summarizes the association of Windows Services settings in the Server Settings application, properties stored in Open Directory, and parameters in /etc/smb.conf.
Table F-1. Samba configuration settings in Mac OS X Server
Server Settings graphical element in Windows Services
Open Directory property in /config/SMBServer
Источник
SAMBA настройка подключения Windows, Mac OS X и Android
SAMBA настройка: мы хотим просто объяснить, как подключить любое из наших устройств Android к локальной сети через SAMBA . Самый распространенный протокол на компьютерах с Windows и Mac OS . С помощью этого метода мы можем воспроизводить мультимедийный контент или запускать файлы любого типа в нашем ТВ-БОКСЕ, смартфоне или планшете, хранящиеся на нашем ПК, из локальной сети. Очень практичная система, которая как мы увидим, не имеет особых сложностей, если мы настроим ее правильно.
SAMBA НАСТРОЙКА В АНДРОИДЕ
Протокол SAMBA является одним из наиболее распространенных. Когда речь идет о совместном использовании устройств или сетевых папок между компьютерами Windows. Который совместим со многими другими системами, такими как Android. Этот протокол по умолчанию активируется в версии SMB v.2 во всех установках Windows и других системах. Которые позволяют устанавливать его в качестве альтернативной сетевой системы.
ПРИЛОЖЕНИЯ ДЛЯ ANDROID
Для подключения к нашему ПК мы должны использовать файловый браузер Android, совместимый с SMB v2 , у многих администраторов есть этот способ или через дополнительный модуль, мы рекомендуем несколько простых вариантов.
- CX Explorer oX-plore — простой в использовании с основными функциями
- MiXplorer +аддон SMB v2 , без рекламы и функционала также на Android TV (рекомендуется)
— Платная версия MiXplorer Silver есть в Google Play, ссылки официального проекта MiXplorer + аддон SMBv2
Настройте CX Explorer или X-Plore с помощью SAMBA
Все эти приложения имеют одинаковую систему конфигурации, в меню вы должны найти раздел сети и добавить наш удаленный сервер, используя IP-адрес, где находится ПК, в дополнение к указанию имени пользователя и пароля, если они у нас определены.
- В CX Explorer выберите «Сеть»> «Удаленная»> «Локальная сеть»> «Выбрать компьютер», если он отображается в списке.
- В X-Plore перейдите в LAN> Добавить сервер> Вручную или сканируйте, если он обнаружит ПК.
- Мы добавляем IP (192.168.0.xxx) в дополнение к данным пользователя и пароля, если мы не оставляем их как анонимные.
CX Explorer
X-Plore
Подготовка ПК с Windows
Чтобы подключиться к ПК, на котором у нас есть файлы для совместного использования. Нам нужно выполнить несколько предварительных шагов, которые мы объясним. Необходимо идентифицировать наш компьютер в сети и дать ему необходимые разрешения, чтобы мы могли подключаться.
- Заходим в ПОИСК и набираем ПАНЕЛЬ УПРАВЛЕНИЯ. и заходим туда.
- Переходим в ПРОГРАММЫ И КОМПАНЕНТЫ
- И переходим во вкладку ВКЛЮЧЕНИЕ ИЛИ ОТКЛЮЧЕНИЕ КОМПОНЕНТОВ WINDOWS.
- В открывшемся окне находим и ставим галку SMB 1.0/CIFS File как на фото.
- НЕЗАБЫВАЕМ ПЕРЕЗАГРУЗИТЬ WINDOWS!
- После перезагрузки в разделе сеть появятся все гаджеты подключенные к SAMBA
ПОДКЛЮЧАЕМ СЕТЬ SAMBA В MAC OS X.
Чтобы напрямую подключиться к файловому серверу, используйте функцию «Подключение к серверу» в окне Finder. Выберите меню «Переход» > «Подключение к» и введите URL-адрес, IP-адрес или доменное имя.
- Вводим адрес например моей ТВ ПРИСТАВКИ UGOOS X3 CUBE где уже расшарен доступ.
Источник
Настройка общего доступа к файлам на Mac
Можно предоставить общий доступ к файлам и папкам другим пользователям в Вашей сети. Можно предоставить доступ всем пользователям ко всему компьютеру Mac или разрешить определенным пользователям обращаться к определенным папкам.
Настройка общего доступа к файлам
На Mac выберите меню Apple
> «Системные настройки», затем нажмите «Общий доступ».
Установите флажок «Общий доступ к файлам».
Чтобы разрешить общий доступ к определенной папке, нажмите кнопку «Добавить» внизу списка «Папки общего доступа», найдите папку, выберите ее, затем нажмите «Добавить».
По умолчанию папки «Общие» всех пользователей, имеющих учетную запись на Вашем компьютере Mac, открыты для общего доступа. Чтобы закрыть общий доступ к папке, выберите эту папку в списке «Папки общего доступа» и нажмите кнопку «Удалить» .
Нажмите имя папки, удерживая нажатой клавишу Control, выберите «Дополнительные параметры», выберите требуемые параметры и нажмите «OK».
По умолчанию любой пользователь, указанный в разделе настроек «Пользователи и группы» на Вашем компьютере Mac, может подключаться к Вашему компьютеру Mac по сети. Пользователь с учетной записью администратора получает доступ ко всему компьютеру Mac.
Чтобы разрешить доступ к папке только определенным пользователям или группам, выберите эту папку в списке «Папки общего доступа», нажмите кнопку «Добавить» внизу списка «Пользователи», затем выполните одно из следующих действий:
Добавление пользователей и групп из списка всех пользователей Вашего Mac. Выберите «Пользователи и группы» в списке слева, выберите одно или несколько имен в списке справа, затем нажмите «Выбрать».
Добавление пользователей и групп из списка всех пользователей в сети. Выберите «Пользователи сети» или «Сетевые группы» в списке слева, выберите одно или несколько имен в списке справа, затем нажмите «Выбрать».
Добавление пользователя из списка контактов и создание для него учетной записи, предназначенной только для общего доступа. Выберите «Контакты» в списке слева, выберите имя в списке справа, нажмите «Выбрать», задайте пароль, затем нажмите «Создать учетную запись».
Чтобы указать уровень доступа пользователя, выберите пользователя в списке «Пользователи», затем нажмите всплывающее меню рядом с именем пользователя и выберите один из следующих вариантов.
Чтение и запись. Пользователь видит файлы в папке и может копировать файлы в папку и из нее.
Только чтение. Пользователь может просматривать содержимое папки, однако не может копировать в нее файлы.
Только запись (почтовый ящик). Пользователь может копировать файлы в папку, однако не может просматривать ее содержимое.
Нет доступа. Пользователь не видит файлы в папке и не может копировать файлы из нее.
Настройка дополнительных параметров общего доступа к файлам
Используйте дополнительные параметры общего доступа к файлам, чтобы задать протокол и другие настройки для каждого общего файла.
На Mac выберите меню Apple
> «Системные настройки», нажмите «Общий доступ», затем выберите «Общий доступ к файлам».
Нажмите имя общей папки, удерживая нажатой клавишу Control, и выберите «Дополнительные параметры».
Выберите расширенные параметры.
Разрешить доступ гостям.
Разрешить только зашифрованные подключения по протоколу SMB.
Использовать как папку для резервного копирования Time Machine.
Гости могут получать доступ к общим папкам на Вашем Mac. Чтобы отключить гостевой доступ, снимите флажок «Разрешить гостям подключаться к общим папкам» в панели «Гость» в настройках пользователей и групп. См. раздел Настройка обычных, гостевых пользователей и групп.
Источник