How to Set Up samba service in Ubuntu

Source: Internet
Author: User
To access Linux through Windows, you can build the samba service and share the directory process: Install sudoapt-getinstallsambasudoapt-getinstallsmbfs on Ubuntu.

To access Linux in Windows, you can set up the samba service to share directories.

Process:

Install sudo apt-get install samba on Ubuntu

Sudo apt-get install smbfs

Sudo apt-get install smbclient

Edit sudo vi/etc/samba/smb. conf

Modification:

# Change this to the workgroup/NT-domain name your Samba server will part
Doc charset = UTF-8
Unix charset = UTF-8
Workgroup = WORKGROUP
Netbios name = user_name.wingtech.com

# "Security = user" is always a good idea. This will require a Unix account
# In this server for every user accessing the server. See
#/Usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# In the samba-doc package for details.
Security = user

Default shared/home/user_name folder

To share/home/share, add the following:

[Share]
Comment = this is linux share directory
Path =/home/share
Browseable = yes
Public = yes
Writable = yes

Change the user name and group name of the directory to user_name.

Sudo chown user_name/home/share

Sudo chgrp user_name/home/share

Create account sudo smbpasswd-a user_name

Restart the samba service: sudo service smbd restart

In this case, you can access the/home/user_name and/home/share folders in windows.

You can try net use \ IP */user: user_name; and prompt to enter the password, enter the password, and prompt that the command is successfully completed to prove that it can be shared.

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.