- Как добавить компьютер под управлением Ubuntu в рабочую группу Windows
- Как заставить мою Ubuntu показать в Windows Workgroup
- 2 ответа
- How to make my Ubuntu show on a Windows Workgroup
- 2 Answers 2
- Can connect ubuntu with windows workgroup
- 3 Answers 3
- Not the answer you’re looking for? Browse other questions tagged workgroup or ask your own question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- How to enable file sharing (Samba) and set the workgroup in Ubuntu Linux
- Quick Steps:
- How to enable file sharing (install Samba) in Ubuntu Linux
- How to share folders on a Ubuntu Linux computer
- How to set the Ubuntu workgroup
- Are you sharing folders between Ubuntu and Windows?
Как добавить компьютер под управлением Ubuntu в рабочую группу Windows
Для удобства я объясню процесс настройки на примере Ubuntu 10.04. Для других дистрибутивов порядок действий примерно такой же — различаются только способы установки Samba. Итак, приступим.
Это, разумеется, самый первый этап. Чтобы установить Samba, откройте терминал и выполните следующую команду:
При этом потребуется ввести пароль к учетной записи root. Возможно, придется также установить некоторые зависимости — в зависимости от того, какие пакеты у вас уже имеются. Поле установки Samba можно приступать к настройке.
Теперь нужно открыть файл «/etc/samba/smb.conf» и отредактировать в нем строку «workgroup = WORKGROUP». Можете использовать для этого gedit, но я предпочитаю nano (только давайте не будем спорить о вкусах).
В этом файле нужно заменить «WORKGROUP» на реальное имя рабочей группы, к которой вы хотите присоединиться. Затем сохраните файл и перезапустите Samba следующей командой:
Можно использовать и такую команду:
После этого компьютер под управлением Ubuntu станет виден всем остальным машинам в этой рабочей группе. На нем можно будет публиковать файлы и папки. Для этого просто запустите файловый менеджер Nautilus, нажмите на папке правой кнопкой мыши и выберите опцию «Общий доступ» (Sharing Options). В открывшемся окне вы сможете настроить параметры публикации и права доступа к папке.
Я еще помню времена, когда наладить совместное использование ресурсов для Windows и Linux было весьма непростой задачей. К счастью, разработчики Linux наконец поняли, что в многоплатформенных сетях публикация папок должна быть налажена максимально удобно для пользователей. Будем надеяться, когда-нибудь создатели Samba разработают еще более простой способ подключения к рабочим группам Windows даже без использования терминала.
Как заставить мою Ubuntu показать в Windows Workgroup
У меня есть ноутбук Ubuntu (10.10). В нашем офисе все используют Windows, и наша рабочая группа просто WORKGROUP . Я установил самбу, и ее conf:
но тем не менее никто не может получить доступ к моей папке доли, и машина не может даже быть замечена в сети. Но я могу получить доступ к совместно используемым папкам других.
Есть ли что-нибудь, что я должен был сделать это, я не учел?
2 ответа
Вы добавляли себя к пользователям самбы?
Можно попробовать этот GUI для конфигурирования его: системная самба конфигурации
Я сделал это для конфигурирования моего:
Предпочтения> Настройки сервера> Основной: введите свою Рабочую группу
Предпочтения> Настройки сервера> безопасность: Аутентификация Mode=User, Гость Гостевая Учетная запись Account=No
Предпочтения> Пользователи Samba> Добавляют пользователя:
Выберите учетную запись Linux (один Samba будет использовать при доступе к совместно используемым файлам. Обычно, Вы хотите выбрать себя.)
Введите в имени пользователя, и пароль (не должна быть реальная учетная запись окон или пароль, его просто вход, который спросит Ubuntu, когда кто-то попытается получить доступ к доле. Это может быть «aaa» / «bbb»),
Так, в основном совместное использование папок включает две различной аутентификации: во-первых, тот, что Samba, по протоколу SMB, просит от любого, который пытается получить доступ к доле. Это — шаг 2 выше. Затем после того, как Samba допускает, что права человека получить доступ к доле, самому Samba будет нужна авторизация ОС получить доступ к файловой системе и ее файлам (модель обеспечения безопасности мира группы владельца Linux). Для этого Samba использует пользователя, выбранного на шаге 1 выше. Таким образом, любая папка (и файлы), который Вы совместно используете, должна быть доступной, в Linux, выбранным пользователем.
В мире Windows это работает то же: существует аутентификация доли и NTFS один.
Наконец, что не менее важно: безотносительно пользователя Вы выбираете (обычно сами), удостоверьтесь, что это имеет Файлы Доли с Сетевым полномочием в кнопке Administration> Users и Groups> Advanced Settings> вкладка Privileges. Я думаю, что Ubuntu уже предоставляет это полномочие первому пользователю, которого это создает, но не повреждает проверять его.
Кроме того, для совместного использования папок я не использую этот GUI, я использую Наутилус:
- Щелкните правой кнопкой по папке, которую Вы хотите совместно использовать
- Выберите «параметры совместного доступа»
- Дайте доле имя и выберите чтение-запись или анонимный доступ
How to make my Ubuntu show on a Windows Workgroup
I have an Ubuntu (10.10) laptop. In our office everyone is using Windows, and our workgroup is simply WORKGROUP . I’ve installed samba, and its conf is:
but still nobody can access my share folder and the machine cannot even be seen on the network. But I can access others shared folders.
Is there anything I needed to do that I left out?
2 Answers 2
Did you add yourself to samba users?
You can try this GUI to configure it: system-config-samba
I did this to configure mine:
Preferences > Server settings > Basic: input your Workgroup
Preferences > Server settings > Security: Authentication Mode=User, Guest Account=No Guest Account
Preferences > Samba Users > Add user:
Choose a Linux account (the one Samba will use when accessing the shared files. Usually, you want to choose yourself.)
Type in a user name and a password (does not have to be a real windows account or password, its just the input that Ubuntu will ask when someone tries to access the share. It can be «aaa» / «bbb»)
So, basically, sharing folders involves two different authentications: first, the one that SAMBA, via SMB protocol, asks for from anyone that tries to access a share. That’s step 2 above. Then, after Samba grants that person rights to access the share, Samba itself will need OS authorization to access to the filesystem and its files (the Linux owner-group-world security model). For that, Samba uses the user selected in step 1 above. So any folder (and files) you share must be accessible, inside Linux, by the user selected.
In the Windows world it works the same: there’s the share authentication and the NTFS one.
Last but not least: whatever user you select (usually yourself), make sure that it has the Share Files with the Network privilege in Administration > Users and Groups > Advanced Settings button > Privileges tab. I think Ubuntu already grants this privilege to the first user it creates, but it doesn’t hurt to check it out.
Also, to share folders, I don’t use this GUI, I use Nautilus:
- Right-click the folder you want to share
- Select «Sharing Options»
- Give the share a name, and select read/write or anonymous access
Can connect ubuntu with windows workgroup
I have a two systems in my home, one is windows 7 and other is ubuntu precise pangolin. Now i want to connect my two systems in one workgroup for sharing purpose. Is it possible to achieve this.
3 Answers 3
You have to use samba for your requirement This has been already explained in this link
Yes. The easy way is to install sharing on ubuntu , right click on a folder and select share. The first time you do this it will want to intall packages and log out. when shared you can type the unc path ubuntuhostname or ip in wondow and get the shares. It should also show up on wondows network places thing.
The harder way is to install samba (sudo apt-get install samba) and configure /etc/samba/smb.conf to your liking. Then add shares.
I use teamviewer for desktop pc’s and vnc for server.
I never did this myself, but I use these two programs often for remote desktop. I believe they both have it somewhere in their options, but never bothered to configure a proper sync folder since I just copy/paste in teamviewer or use a ftp for vncviewer & vncserver
Not the answer you’re looking for? Browse other questions tagged workgroup or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.16.39093
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
How to enable file sharing (Samba) and set the workgroup in Ubuntu Linux
Windows computers and devices can interconnect and share files and folders between them using network shares. However, if you also use Ubuntu Linux on some of your computers, network sharing between them and Windows is not straightforward. To connect your Ubuntu Linux computers to Windows computers and share files and folders, you need to make a series of settings. The first one is to enable file sharing using the Samba protocol. You also have to change the workgroup used by your Ubuntu Linux PCs so that all your computers belong to the same workgroup. In this tutorial, we will demonstrate how to enable file sharing and then how to configure and change the workgroup on a Ubuntu PC:
Quick Steps:
- Open the Terminal
- Run the command: sudo apt update .
- Run the command: sudo apt install samba.
- Run the command: sudo gedit /etc/samba/smb.conf.
- Scroll to the Workgroup line and change the workgroup name.
- Save smb.conf.
NOTE: We created this article using Ubuntu 20.04 LTS.
How to enable file sharing (install Samba) in Ubuntu Linux
The sharing service or Samba is not installed by default in Ubuntu Linux. The installation process of Samba varies in complexity, depending on the method you prefer to use. Here’s the easiest and most straightforward way to install Samba:
First of all, open the Terminal by simultaneously pressing CTRL + ALT + T on your keyboard.
Terminal in Ubuntu Linux
In the Terminal window, run this command: sudo apt update. This command downloads package information from all the sources configured on your Ubuntu PC. In other words, it downloads data from the internet about updated versions of software packages or their dependencies. After you run this command, you might be asked to enter your user password.
Running sudo apt update in Ubuntu Linux
Next, run the command sudo apt install samba. This command tells Ubuntu Linux to download and install all the software packages required for Samba – the sharing service – to run on your computer. Wait for the command to do its thing and, if you’re asked to confirm that you want to install a certain package, accept by entering Y (Yes) and pressing Enter on your keyboard.
Running sudo apt install samba in Ubuntu Linux
Once the installation is done, Samba should be running on your Ubuntu Linux machine. However, just to make sure that everything is OK, you might want to restart your PC before moving on to the next part of this tutorial.
How to share folders on a Ubuntu Linux computer
Once Samba is running, you can easily share folders. To do that, first open Files.
Opening Files in Ubuntu Linux
Next, go to the folder that you want to share on the network and right-click on it to open a contextual menu. On the menu, select Properties.
Opening Properties of a folder in Ubuntu Linux
In the Properties window, select the Local Network Share and check the setting called “Share this folder.”
Share this folder in Local Network Share
Change the Share name and add a Comment if you want. Then, also select or deselect the “Allow others to create and delete files in this folder” and “Guest access (for people without a user account” settings according to how you want to give other network users access to your shared folder.
Configuring how the folder is shared in Ubuntu Linux
When done, click the Create Share button to start sharing that folder with your network, including all the Windows computers and devices connected to it.
How to set the Ubuntu workgroup
In most cases, you don’t have to change the workgroup name because, by default, Ubuntu, Windows, and Mac OS all have the same workgroup name, which is actually WORKGROUP. However, if you have to change it, follow the next steps.
Open a Terminal window (CTRL + ALT + T), and run the following command: sudo gedit /etc/samba/smb.conf. Then, press Enter. If you haven’t previously used the Terminal this session, Ubuntu should ask you to type in your user account password.
Running sudo gedit /etc/samba/smb.conf in Ubuntu Linux
Next, the Samba configuration file opens in a gedit window. Scroll down, if necessary, until you find the workgroup line in the Global Settings section.
Ubuntu workgroup setting
Change the Ubuntu workgroup value to match the name of the workgroup you want to add your Ubuntu computer to. Then, click Save and restart Ubuntu to make sure that the new settings are applied.
Save to apply the Ubuntu workgroup change
NOTE: If you have a network that includes Windows computers, you need to make sure the workgroup is set up the same as on your Ubuntu computers. Do that if you want your Ubuntu PCs to join your Windows workgroup. To learn how to do this, check out this tutorial: The Windows 10 workgroup and how to change it.
Are you sharing folders between Ubuntu and Windows?
You can enable sharing in Ubuntu (or any Linux PC) and configure it to join a Windows workgroup to be visible on the same network and share files, folders, and printers. If you want to know more about setting up other PCs on a local network or how to utilize the networking features between Linux and Windows, check out the articles listed below.