Setting up Samba server and using client in Linux
I am just a beginner in Linux. I have encountered many problems during Samba configuration, and the online tutorials are not quite complete. Therefore, I will write a complete article here for your convenience.
1. First, find the smb-related service programs in the Add/delete software library. Generally, they are automatically installed.
2. Click the application ----> system Tool -------> terminal (application -------> system ----> terminal) and use su to escalate permissions to the root administrator.
[Root @ bogon morningsun] # The # appears, which is under the root permission.
3. Modify the smba configuration file, enter cd/etc/samba to the directory, and find the configuration file.
4. Use vim smb. conf to open the configuration file. Before that, back up the configuration file, just in case.
5. modify the configuration file as follows: (you do not need to enter a password here. If you need to log on, you can search for it online)
Change location: [global]
Security = share
Add the following content at the end of the file:
[Myweb]
Path =/var/www/html
Comment = fsd
Public = yes
Writable = yes
Browseable = yes
The path is the shared path, the comment is the open content, and the rest are easy to understand.
Then change security under Standalone Server Options to security = share.
Save the file and exit.
6. Return to the terminal, enter service smb start to start the service, and check the running status of service smb status.
7. Modify selinux to terminate the service. The operation is as follows:
View SELinux status:
1./usr/sbin/sestatus-v # If The SELinux status parameter is enabled, it is enabled.
SELinux status: enabled
2. getenforce # You can also use this command to check
Disable SELinux:
1. temporarily shut down (no need to restart the machine ):
Setenforce 0 # Set SELinux to permissive Mode
# Setenforce 1 Set SELinux to enforcing Mode
2. to modify the configuration file, restart the machine:
Modify the/etc/selinux/config file
Change SELINUX = enforcing to SELINUX = disabled
Restart the machine.
8. In the window, press ctrl + R to open the run box and enter \ 192. 168. *. * (the address of your VM can be viewed using the command ifconfig .) The Virtual Machine directory can be shared. So far, the entire installation process is complete.
@ Author: zhaohao
@ Name: distant stars
------------------------------------ Split line ------------------------------------
How to share files with Samba in Ubuntu 14.04
The speed of accessing samba from Ubuntu dual Nic of VMWare Virtual Machine doubles
Add the Samba File Sharing Server to the Windows Server 2003 Domain
Samba installation Configuration
Samba service configuration in CentOS 6.2
Samba Server installation and configuration
How to Build the Win7 + VMware + Fedora18 Samba Server
------------------------------------ Split line ------------------------------------
Samba details: click here
Samba: click here
This article permanently updates the link address: