Linux Eighth Week Lesson notes (2) NFS,LDAP network account number, AutoFS automatic mount Service

Source: Internet
Author: User
Tags ldap openldap

##################### #NFS ############################

Nfs

Manual Mount Mode

1) Yum Install Nfs-utils

2) SHOWMOUNT-E IP # # identifies shares under this IP

3) Mount Ip:/sharedir/mountpoint # # mount point mount directory

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8A/42/wKioL1gsJunTshwYAAFQMSvbM3Y027.png-wh_500x0-wm_3 -wmp_4-s_747362402.png "title=" 2016-11-16 13_55_02 screenshot. png "alt=" wkiol1gsjuntshwyaafqmsvbm3y027.png-wh_50 "/>

Permanent Mount mode

Method One

Vim/etc/fstab

172.25.254.250:/nfsshare/nfs1/mnt NFS Defaults 0 0

[Email protected] ~]# vim/etc/rc.d/rc.local

Method Two

Write the following in the last line of the file

Mount 172.25.254.250:/nfsshare/nfs1/mnt

[Email protected] ~]# chmod 755/etc/rc.d/rc.local

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8A/42/wKioL1gsJwjxWJ1xAAFVOQFzCAs517.png-wh_500x0-wm_3 -wmp_4-s_1868007500.png "title=" 2016-11-16 14_01_01 screenshot. png "alt=" wkiol1gsjwjxwj1xaafvoqfzcas517.png-wh_50 "/>

############ #autofs Automatic mount service ######################

Service Features

by default when using mount Mount sharing, it is also mounted when no share is used, greatly consuming resources

The AutoFS service can be automatically mounted when used and automatically uninstalled when idle

Auto Mount Mode

1) Yum Install AutoFS

2) systemctl start AutoFS

3) cd/net/ip/

4) Vim/etc/syscofig/autofs

Timeout=5

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8A/46/wKiom1gsJyjDgj_EAAJtdS6UhFc058.png-wh_500x0-wm_3 -wmp_4-s_352626201.png "title=" 2016-11-16 14_42_03 screenshot. png "alt=" wkiom1gsjyjdgj_eaajtds6uhfc058.png-wh_50 "/>

############# #ldap Network account #############

What is 1.LDAP?

LDAP directory service authentication, Similar to Windows Active Directory, is a way to record data

software required by 2.LDAP client

Yum SSSD krb5-workstation-y

3. How to turn on LDAP user authentication

Authconfig-tui

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8A/42/wKioL1gsJ0zw9wsYAAFEGVoxijk666.png-wh_500x0-wm_3 -wmp_4-s_1023572840.png "style=" Float:none; "title=" 2016-11-16 15_15_11 screenshot. png "alt=" Wkiol1gsj0zw9wsyaafegvoxijk666.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8A/42/wKioL1gsJ03DfwgEAADZZ5P2nFw182.png-wh_500x0-wm_3 -wmp_4-s_2092495039.png "style=" Float:none; "title=" 2016-11-16 15_15_19 screenshot. png "alt=" Wkiol1gsj03dfwgeaadzz5p2nfw182.png-wh_50 "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8A/46/wKiom1gsJ03Cw O_o aaed-myzckk109.png-wh_500x0-wm_3 -wmp_4-s_71210287.png "style=" Float:none; "title=" 2016-11-16 15_15_26 screenshot. png "alt=" wkiom1gsj03cwo_ Oaaed-myzckk109.png-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8A/46/wKiom1gsJ07jTM25AAEORP1iwkQ051.png-wh_500x0-wm_3 -wmp_4-s_4279737655.png "style=" Float:none; "title=" 2016-11-16 15_15_32 screenshot. png "alt=" Wkiom1gsj07jtm25aaeorp1iwkq051.png-wh_50 "/>



because the TLS certificate is missing, you need to download the required certificate to the server-side /etc/openldap/cacerts,

The command to use

CD /etc/openldap/cacerts

wget HTTP://172.25.254.254/PUB/EXAMPLE-CA.CRT

Final re-certification

Authconfig-tui

Test

Getent passwd Ldapuser1

If the user information can be displayed properly, the client is certified successful.

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8A/46/wKiom1gsJ3mx64QcAAIKuwpmreg580.png-wh_500x0-wm_3 -wmp_4-s_3513838039.png "title=" 2016-11-16 15_18_22 screenshot. png "alt=" wkiom1gsj3mx64qcaaikuwpmreg580.png-wh_50 "/>

4. Auto-mount user home directory

Yum Install Autofs-y

Vim/etc/autofs.master

/home/guests /etc/auto.ldap

Vim/etc/auto.ldap

Ldapuser1 172.25.254.254:/home/guests/ldapuser1

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

* 172.25.254.254:/home/guests/&

Systemctl Restart AutoFS

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8A/42/wKioL1gsJ4nzqVWBAADTqTY6gyI126.png-wh_500x0-wm_3 -wmp_4-s_1291335290.png "title=" 2016-11-16 15_51_16 screenshot. png "alt=" wkiol1gsj4nzqvwbaadtqty6gyi126.png-wh_50 "/>

Linux Eighth Week Lesson notes (2) NFS,LDAP network account number, AutoFS automatic mount Service

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.