Linux Samba server Construction

Source: Internet
Author: User

Linux Samba server Construction
1. Samba: Server Messages Block (SMB) is a communication protocol for sharing files and printers on a LAN,
It provides sharing services for files, printers, and other resources between different computers in the LAN.
2. install the samba server: sudo apt-get install samba;
3. Configure the samba server: sudo vim/etc/samba/smb. conf;
In the format of [printers], add the content in the red box below it and set the username to smb,
The shared folder is the home directory.

4. Add an access user (that is, add the user name and password required to log on to the home directory in ubuntu from windows)
(1) Add smb system users:
Command: sudo useradd smb
(2) set the smb User Logon password:
Command: sudo smbpasswd-a smb
5. start, stop, and restart the samba service.
Run the following commands on the terminal:
Start the samba service: sudo/etc/init. d/smbd start
Stop samba: sudo/etc/init. d/smbd stop
Restart the samba service: sudo/etc/init. d/smbd restart
6. restart the Samba service after samba is configured: sudo/etc/init. d/smbd restart;
7. Access the ubuntu shared directory home from win7
Enter the ubuntu IP address in the Start search.

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.