One of the configuration and usage of several servers in linux: nfstftp

Source: Internet
Author: User
Article Title: One of the configuration and usage of several servers in linux: nfstftp. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Nfs Server Configuration:

1. Install the nfs server. (generally, only start is required for linux systems on PCs)

2. Create or modify the/etc/exports configuration file

[Shared directory] [host name or IP address (parameter, parameter)]

[Shared directory] [host name 1 or IP1 (parameter 1, parameter 2)] [host name 2 or IP2 (parameter 3, parameter 4)]

Below are some common NFS sharing parameters:

Ro read-only access
Rw read/write access
Sync all data written for sharing upon request
Async NFS can request data before writing data
Secure NFS is sent through the secure TCP/IP ports below 1024
Insecure NFS is sent over port 1024
Wdelay if multiple users want to write data to the NFS Directory, group write (default)
No_wdelay if multiple users want to write data to the NFS Directory, write the data immediately. This setting is not required when async is used.
Hide does not share its subdirectories in the NFS shared directory.
No_hide shares the subdirectory of the NFS Directory
Subtree_check if sub-directories such as/usr/bin are shared, force NFS to check the permissions of the parent directory (default)
No_subtree_check is opposite to the above. The parent directory permission is not checked.
All_squash: The UID and GID of the shared file are mapped to the anonymous user anonymous, which is suitable for public directories.
No_all_squash retains the UID and GID of the shared file (default)
Root_squash all requests of the root user are mapped to the same permissions as those of the anonymous user (default)
The no_root_squas root user has full management access permissions to the root directory.
Anonuid = xxx specifies the UID of an anonymous user in the NFS server/etc/passwd file
Anongid = xxx specifies the GID of anonymous users in the NFS server/etc/passwd file

The configuration file/etc/exports is as follows:

$ Gedit/etc/exports

/Home/share 192.168.1.1 (rw, sync) * (ro)

Configuration Description: grant read and write permissions to 192.168.1.1. Other machines only have read-only permissions. * Indicates all.

3. Usage:

Load shared resources on client 192.168.1.1

# Mount-t nfs 192.168.1.4:/home/share/mnt
# Cd/mnt

Install and configure the tftp service (redhat9.0 ):

For the installation of the tftp service, for RedHat9.0, the tftp RPM package is on the third Disk of the installation disc, you can mount it with mount/dev/cdrom mnt/cdrom, copy to the/home/work directory
Install

Rpm-ivh tftp-server-0.32 ********

Rpm-ivh tftp-0.32 **** (this package is required by the client to log on to the tftp server)

After installation, configure and enable the Service

In linux, no matter which super-server, inetd or xinetd is used, the TFTP service is disabled by default, so you need to modify the file to enable the Service.

Switch to the cd/etc directory

Open the configuration file of the tftp service

Command: emacs xinedt. d/tftp

The modified file is as follows:

Service tftp
{Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-s/home/work/tftpboot-c
Disable = no
Per_source = 11
CPIs = 100 2
Flags = IPv4
}

 

[1] [2] Next page

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.