This article is just my personal experience. please correct me if you have any mistakes. This article does not discuss what Samba is. Fedora
1. Check whether the samba RPM package has been installed in fedora (this step is optional)
Note: To uninstall an existing RPM package, run the following command:
2. Download three RPM packages from http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/, samba-3.0.3-5.i386.rpm, and samba-client-3.0.3-5.i386.rpm to samba-common-3.0.3-5.i386.rpm.
3. Upgrade samba-common RPM to 3.0.3-5.
Rpm-uvh samba-common-3.0.3-5.i386.rpm |
4. Install Samba 3.0.3-5 and samba-Client
Rpm-I samba-3.0.3-5.i385.rpm Rpm-I samba-client-3.0.3-5.i386.rpm |
NOTE: If Samba is successfully installed, a "SMB" shell script file will be installed in the "/etc/rc. d/init. d" directory.
5. Run the "chkconfig -- List" command to check whether the smb service is already in the fedora service list.
6. If not, use "chkconfig -- add SMB" to add the smb service.
7. Use the "chkconfig -- level 35 SMB on" command to open the samba service at the third and fifth running levels (it does not matter if you do not know the specific details ). In this way, SAMBA service is automatically enabled every time fedora is restarted.
8. Prepare your/etc/samba/smb. conf file. Here is my smb. conf example:
[Global] Workgroup = workgroup Server String = My-Serv NetBIOS name = My-Serv Log File =/var/log/samba/% m. Log Max log size = 50 Security = user Encrypt passwords = Yes SMB passwd file =/etc/samba/smbpasswd Unix Password Sync = Yes Passwd program =/usr/bin/passwd % u Passwd chat = * New * password * % N/N * retype * New * password * % n/n * passwd: * All * authentication * tokens * Updated * successfully * Pam password change = Yes Obey Pam restrictions = Yes Socket Options = tcp_nodelay so_rcvbuf = 8192 so_sndbuf = 8192 Wins support = Yes DNS proxy = No #==================================== Share definitions ====================== ==================== [Homes] Comment = Home Directories Browseable = No Writable = Yes Valid users = % s Create mode = 0664 Directory mode = 0775 [Public] Path =/Public Public = Yes Only guest = Yes Writable = Yes Printable = No |
9. Run "testparm" to check if the smb. conf file is incorrect.
10. Run "service SMB restart" to restart Samba.
11. Check that firewall of Fedora does not prohibit Samba file sharing.
Windows
1. Your PC must be in the "workgroup" group, which is composedWorkgroup = workgroupDetermined.
2. Open my network places under my computer. In "workgroup", you should find my-Serv.
3. Map "L:" Drive to // my-serv/homes, "l:" drive to your personal data. Others cannot access it without a password.
4. Map "P:" Drive to // my-serv/public, "P:" Drive to store public files.
From then on, you will be able to share files between fedora and windows.