Build an internal file server in LINUX

Source: Internet
Author: User
Article Title: build an internal file server in LINUX. 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.

We recommend that you disable the firewall and selinux services and then configure the following:

NIS server configuration steps:

1. rpm-qa | grep ^ yp check whether the system has packaged the pybind-1.17.2-3 yp-tools-2.8-7 software.

Run the rpm-q portmap command to check whether the package is installed. (Because NIS and NFS require the support of the portmap service)

2. Install the ypserv software package (the first disc)

Rpm-ivh ypserv-2.13-5.i386.rpm

3. Set the time and time-udp services to the startup status.

Chkconfig time on

Chkconfig time-udp on

Service xinetd restart (Services dependent on xinetd must be restarted to take effect)

4. Create the NIS domain name nisdomainname nistest (here the nistest domain name created using the nisdomainname command takes effect temporarily. To make the domain name take effect permanently, write the configuration file)

Vi/etc/rc. d/rc. add/bin/nisdomainname nistest to the last line of local. You can also use this command to import and append the content: echo '/bin/nisdomainname nistest'>/etc/rc. d/rc. local and edit rc. local is the same.

At the same time, you also need to write a row of NISDOMAIN = nisdomain records in the/etc/sysconfig/network file. You can use VI to edit or append

Echo 'nisdomain = nistest '>/etc/sysconfig/network

5. Modify the main configuration file ypserv. conf.

Set access control records (second verification)

In # under MSDOG everbody is root and can access port>/etc/hosts

3. Create the NIS domain name nisdomainname nistest (the domain name on the server and the client must be the same .) Echo '/bin/nisdomainname nistest'>/etc/rc. d/rc. local

Echo 'nisdomain = nistest '>/etc/sysconfig/network

4. Set the yp. conf configuration file echo 'domain nistest server nisserver'>/etc/yp. conf

(Nistest is the name of the NIS domain name NISserver and the name of the NIS Domain Name Server)

5. Set the nsswitch. conf file to set the Information Query Method in the system. Add nis to the original files.

Passwd: files

Shadow: files (original)

Group: files

Hosts: files dns

Passwd: files nis

Shadow: files nis (after modification)

Group: files nis

Hosts: files dns nis

[1] [2] Next page

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.