Configure the samba server in GentooLinux to share Linux with Windows.

Source: Internet
Author: User
Host: Gentoo11.2withlinuxkernel3.0.61. install the Samba server and run the [cpp] www.2cto. comprint directly with the default USE mark? Emergesamba2, configure/etc/samba/smb. conf, first copy/etc/samba/smb. conf. default ran... host: Gentoo 11.2 with linux kernel 3.0.6

 

 

1. install the Samba Server

USE the default USE flag to directly execute the command
 
[Cpp] www.2cto.com print?
Emerge samba
2. configure/etc/samba/smb. conf.
 
First Copy/etc/samba/smb. conf. default and modify it as needed.
The modified smb. conf file is as follows:
 
[Cpp] www.2cto.com
#====================================== Global Settings ==================== ======================================
[Global]
Guest account = nobody
Netbios name = yan-laptop
Workgroup = WORKGROUP
Server string = Samba Server
Security = share
Load printers = no
Log file =/var/log/samba/log. % m
Max log size = 50
Wins support = yes
Dns proxy = no
Create mode = 0777
Force create mode = 0777
Directory mode = 0777
Force directories mode = 0777
[Share]
Path =/home/samba
Browseable = yes
Guest OK = yes
Writeable = yes
 
3. create a folder
 
 
[Cpp] www.2cto.com
Sudo mkdir/home/samba
Chmod 777/home/samba
 
 
4. restart the samba service.
 
[Cpp] www.2cto.com
Sudo/etc/init. d/samba restart

 


 

5. shared folders can be read and written in windows.

In Windows 7




From http://blog.csdn.net/yming0221/article/details/7207846

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.