Samba Server Setup under Linux

Source: Internet
Author: User

Beginner, Share

Environment and Conditions---

Virtual machines: VMware virtual machines

System: Linux ubuntu 4.4.0-31-generic #50 ~14.04.1-ubuntu SMP Wed Jul 01:07:32 UTC x86_64 x86_64 x86_64 gnu/linux

1: Boot into system terminal, shortcut key "Ctrl" + "Alt" + "T",

in terminal input " sudo apt-get install samba Samba-common "Enter, the system will prompt you to brush in the current user's password, entered the password to start the installation."

When the download is complete, the user is asked to perform the installation, and enter "Y" to start execution. Wait for the installation to complete silently.

2: Create a shared folder. In terminal input "sudo mkdir/home/share" to establish a shared folder named share. Then type "chmod 775/home/share" in the terminal to modify the folder properties.

3: Modify the Samba configuration file. In terminal, enter "sudo vi/etc/samba/smb.conf" to open the configuration file. Write "Security = user" in the position of approximately 69 lines.

Add at the end of the file

[MyShare]

Comment = My share directory//description
Path =/home/share//shared folder directory
Browseable = yes//shared readable
writable = yes//shared writable

Save exit

4:samba User Establishment

5: Query Linux system IP. Enter "Ifconfig" in the terminal. Querying the IP of the system

6: Connect. In Windows run, enter the IP connection, then enter the user name and password, you can successfully enter the shared folder, but the files in the share cannot be modified.

Attention:

If downloading samba is unsuccessful, enter the "sudo apt-get update" update

VI Display line number ": Set Nu"

Other operations

See which users are already in the Samba server:

sudo pdbedit-lremove a user from the Samba servicesudo smbpasswd-x user nameTo view all users in Linux:cat/etc/passwdTo view all the groups in Linux:Cat/etc/groupDelete a Linux usersudo userdel user nameRemove all information from a user in Linuxsudo userdel-r user name

Samba Server Setup under Linux

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.