TAILIEUCHUNG - Automating Linux and Unix System Administration phần 5

Cả hai Red Hat và Debian có một người dùng chuyên dụng để chạy quá trình daemon NTP. Tài khoản người dùng, có tên là "NTP," sẽ cần phải viết truy cập vào thư mục. Khi bạn đặt tên một subnet sử dụng từ khóa và bỏ qua các từ khóa, máy chủ cho phép kết nối khách hàng NTP mạng con. | 164 CHAPTER 7 AUTOMATING A NEW SYSTEM INFRASTRUCTURE By default exchange time with everybody but don t allow configuration. See usr share doc ntp-doc html for details restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery Local users may interrogate the ntp server more closely restrict restrict 1 allow the local subnet to query US restrict mask nomodify notrap Both Red Hat and Debian have a dedicated user to run the NTP daemon process. The user account named ntp will need write access to the var lib ntp directory. When you name a subnet using the restrict keyword and omit the noquery keyword the server allows NTP client connections from that subnet. Configuring the NTP Clients Now that we have working NTP servers on our network we need configuration files for the Linux both Red Hat and Debian and Solaris systems on our network. We refer to the systems running NTP to synchronize only with internal hosts as NTP clients. Solaris 10 NTP Client You ll find it easy to configure a single Solaris 10 system to synchronize its time using NTP. We will automate the configuration across all our Solaris systems later but will first test our configuration on a single host to validate it. Simply copy etc inet to etc inet and comment out these lines server fudge stratum 0 keys etc inet trustedkey 0 requestkey 0 controlkey 0 Add lines for our internal NTP servers server server CHAPTER 7 AUTOMATING A NEW SYSTEM INFRASTRUCTURE 165 Create the file var ntp as root using the touch command and enable the ntp service touch var ntp usr sbin svcadm enable svc network ntp It s really that easy. Check the var log messages log file for lines like this indicating success Jul 27 18 05 30 aurora ntpdate 995 ID 558275 adjust time server offset sec Red .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.