Windows and Linux implement file sharing

Source: Internet
Author: User

Linux and Windows implement sharing, need to install Samba server

Installation steps:

1. See if Samba is already installed

Rpm-q Samba

2. If you have installed, if you want to install again, you can uninstall

Rpm-e Samba

3. Attach your own installation files to Linux

mount/mnt/cdrom/

4. Copy the file from Sam to/home, ready to install

cp/mnt/cdrom/samba*/Home

5. Start the installation

RPM-IVH Samba-common-...

RPM-IVH samba-client ...

RPM-IVH samba-2.2.7 ...

6.samba installation Complete, create a youyou user

Useradd Youyou (tips: When creating a new user, a user group is created youyou,youyou the user by default in the Youyou user group)

passwd Youyou

123

7. Set Samba password for Youyou

Add all users to SMBPASSWD

cat/etc/passwd | mksmbpasswd.sh >/ETC/SAMBA/SMBPASSWD

Set Password

SMBPASSWD Youyou

123456

8. Start the Samba server test

Service SMB start start

Service SMB Stop Stop

Service SMB Restart restart

9.win7 shortcut key Win+r, the Run box appears, enter \\192.168.116.88

(1) An unreachable condition occurs because the firewall

"1" First look at whether SSH and Samba services on the Linux server are turned on
Service sshd Start
Service SMB Start
"2" If the service is turned on, see if the firewall is blocking the package.
Iptables-l look at the rules, if you understand the rules directly
Iptables-f Empty the firewall rule, and then
Service iptables Save rule
"3" Firewall is out of the box or not, so try it. SELinux off
Vi/etc/selinux/config
Selinux=disabled then start again and try again.

(2) Prompt user name and password error

Start, run, enter secpol.msc, open Local Security policy, open Local Policies, click Security Options in the Local Security Policy window, and then in the list on the right, locate network security: LAN
Manager Authentication Level ", change the value of this option to" Send LM and ntlm– if negotiated, use NTLMv2 session security ", click OK

  

Windows and Linux implement file sharing

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.