Samba ora16 samba + vsftp + nfs configuration

Source: Internet
Author: User
Samba configuration: install samba and related dependencies: sudoyuminstallsambasmbclient-y. edit the configuration file sudogedit/etc/samba/smb as needed. conf. disable the firewall without special requirements by default: sudogedit/etc/selinux/config... samba configuration:
Install samba and related dependencies: sudo yum install samba smbclient-y
Edit the configuration file as needed: sudo gedit/etc/samba/smb. conf. keep the default value without special requirements.
Disable the firewall: sudo gedit/etc/selinux/config, change SELINUX = enforcing to SELINUX = disable, and restart
Create a samba account: sudo useradd admin
Add an account to samba and create a samba verification password: sudo smbpasswd-a admin. enter the password twice.
Enable samba-related services: sudo systemctl enable smb. service nmb. service
Check whether systemctl is enabled: enabled smb. service nmb. service, enabled is displayed.
Find a windows computer in the LAN, win + R, and enter \ x. x. in the displayed dialog box, enter admin and your own password.
To have more functions, study the/etc/samba/smb. conf file.
Vsftpd configuration:
Install vsftpd and related dependencies: sudo yum install vsftpd-y
Edit the configuration file sudo gedit/etc/vsftpd. conf as needed. keep it by default without special requirements.
Disable the firewall: sudo gedit/etc/selinux/config, change SELINUX = enforcing to SELINUX = disable, and restart
Enable samba-related services: sudo systemctl enable vsftpd. service
Check whether systemctl is enabled: enabled vsftpd. service. enabled is displayed.
Find a computer in the LAN, enter your server address: ftp://x.x.x.x in the browser, enter: ftp: // www.2cto.com in the local test
If the access permission problem occurs, change the permission: sudo chmod-R 755/var/ftp
NFS configuration:
Install nfs and related dependencies: sudo yum install nfs-utils *-y
Edit the configuration file sudo gedit/etc/exports as needed. if the shared directory is/home and you want to mount the file to read and write the file, add a line to it: /home * (sync, rw), * indicates all IP addresses. If an IP address is specified for access, you can directly replace it with the specified IP address; if you want to read/home only, you can change rw to ro. for detailed parameters, see the manual.
Enable nfs-related services: sudo systemctl enable nfs-server.service
Nfs-server check enabled: systemctl is-enabled nfs-server.service, displays enabled
When other machines are remotely loaded, only mount x. x:/home/mnt is required. x. x is the ip address of the local machine, and other operations are normal.

From int64Ago's column
Related Article

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.