Home > php教程 > php手册 > body text

Linux Samba server setup

WBOY
Release: 2016-07-06 14:25:23
Original
1448 people have browsed it

Linux Samba server construction

1. Samba: SMB (Server Messages Block) in English 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 local area network.
2. Install samba server: sudo apt-get install samba;
3. Configure samba server: sudo vim /etc/samba/smb.conf;
Follow [printers] and add the following image after it For the content in the red box shown, the configured user name is smb,
and the shared folder is the home directory

4. Add an access user (that is, add the user name and password required to log in to access the home directory in ubuntu from windows )
(1) Add smb system user:
Command: sudo useradd smb
(2) Set smb user login password:
Command: sudo smbpasswd –a smb
5. samba service : Start, stop and restart
Enter the commands in the terminal, respectively:
Start the samba service: sudo /etc/init.d/smbd start
Stop the samba service: sudo /etc/init.d/ smbd stop
Restart the samba service: sudo /etc/init.d/ smbd restart
6. After Samba is configured, restart the samba service: sudo /etc/init.d/ smbd restart;
7. Access the ubuntu shared directory home from win7
Enter the IP address of ubuntu in the start search
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!