Ubuntu tutorial-change the Samba workgroup and computer name

Source: Internet
Author: User
This is the most frequently asked question from another new Ubuntu user. The answer to this question is simple, but it takes time for you to fully understand new things. This is a problem we received a few days ago. How do I change the Samba Working Group Name and Ubuntu computer name? For most Ubuntu users, changing their computer names rarely happens, let alone samba workgroup. Some advanced users may want to learn how to do this easily with Ubuntu. In Ubuntu

This is the most frequently asked question from another new Ubuntu user. The answer to this question is simple, but it takes time for you to fully understand new things.

This is a problem we received a few days ago;

How can I change the working group name and Ubuntu computer name of Samba?

For most Ubuntu users, changing their computer names rarely happens, let alone samba workgroup. Some advanced users may want to learn how to do this easily with Ubuntu.

When it comes to changing the computer name in Ubuntu, we wrote a simple post, which can be found here. Follow this simple guide on how to modify your computer name to achieve your goal.

There may be other ways to change your computer name in Ubuntu, but this is the simplest and fastest. For servers that use the Ubuntu system, you can use the host name and host file edited by vi or vim. Those who do not know the editor may have difficulty using vi or vim.

PressCtrl-Alt-TOpen the terminal to change the Samba Working Group in Ubuntu. When the terminal opens, run the following command to edit the Samba configuration file.

sudo gedit /etc/samba/smb.conf

After opening this file, make sure that the word or value of the row starting with the workgroup in the [global] segment is the workgroup you want. For example, if you want the WORKGROUP to become UBGP, replace it with UBGP and save the file. In most cases, you must restart your computer to make it take effect.

The above is how to change your computer name and Working Group in Ubuntu. Remember, if you want to share or Access Windows files and folders, you must install Samba. Without Samba, it is difficult to share files with Windows.

Run the following command to install Samba.

sudo apt-get install samba

Welcome back to learn more about Ubuntu tips.

Enjoy it!

Samba details: Click here
Samba: Click here

Related reading:

Samba file sharing-implementing heterogeneous communication http://www.linuxidc.com/Linux/2013-03/81152.htm

VMWare Virtual Machine Ubuntu dual Nic samba access speed doubled http://www.linuxidc.com/Linux/2013-06/85445.htm

Samba File Sharing Server joining Windows Server 2003 domain http://www.linuxidc.com/Linux/2013-06/86391.htm

Samba installation configuration http://www.linuxidc.com/Linux/2013-06/86101.htm

Configuration http://www.linuxidc.com/Linux/2013-01/78390.htm for Samba services in CentOS 6.2

Graphic http://www.linuxidc.com/Linux/2013-01/78234.htm for building Win7 + VMware + Fedora18 Samba Server

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.