Windows file sharing access by samba server linux

 What samba server

    Samba is a free software implementation of the SMB protocol on UNIX and Linux systems, consists of server and client programs.

 The so-called server, this is the samba server architecture, the client level equivalent to our users can access roughly like so understanding.


 Set up samba server on linux

1, download and install Samba

    First we need to get install samba package, get way I will not say, the Internet can be found everywhere.

    Once you have installed the package, we adopted Linux    RPM -ivh   installation instructions to install this package

2, configure Samba

    After installing the samba configuration we need to give some of the information by linux


    First, we need to add a login and password to the user in samba

    Instruction smbpaawd -a username

    This user name already exists a set of users to the

    After executing this command, you will need your social login password of the samba

    Password, and your system user's login password does not matter, this setting password used to login to the server

    

    After setting the user and password, we need to configure the smb.conf file

    Command vim /etc/samba/smb.conf 

    After opening the file, we have been turned down files found [home] this line

    Then execute 6yy this instruction, began to copy the sixth row [home]

    Then execute instructions [Home] The top row p replication.

    Then we need to change the code that we just copied

    I changed good code is as follows:

    [root]

       comment = Root Directories

       path = /

       browseable = yes

       writeble = yes

    ;  valid users = samba   

   Explain this code:

   2 lines of code written directly shining on it

   The latter path = / access to the root directory, if you want access to other directories, direct change class capacity equal sign on it

   browseable = yes browsable representatives, if it is no, then the browser can not express

   writeble = yes written on behalf of families, and if no written words can not express

   ; Valid users = samba this is a login user is samba, your login user is a user login before you set up samba password

   After the written instructions: wq to save and exit 

3, restart the samba service

   Instruction / etc / init, d / smb restart  

 Completion of the above operations, shared files from us a major success of the.


 To smooth file sharing, we need two basic conditions

 1, linux in among the network

  /etc/init.d/network restart

 2, turn off the firewall

 /etc/init.d/iptables stop

 Completion of the above operations we can achieve the file sharing.

 This also very noteworthy

    When file sharing, be sure to use comes with the IE browser, otherwise you can not connect linux

    I have to start using goole browser, not entirely.

 IE, then it does not open the Windows file manager, enter linux network address in the address box, or visit,

 IE browser is actually the recipients of the File Manager dialog box

   

   

   

    

   

  

 

       


   

Released two original articles · won praise 0 · Views 6421

Guess you like

Origin blog.csdn.net/qq_39040377/article/details/78395458