Linux

솔리라스 10 nis 설정 2024 버전

Naan 2024. 3. 21. 00:08
반응형

솔리라스 10 nis 설정 2024 버전

https://algo79.tistory.com/401

 

솔라리스 10 nis nfs 설정

centos나 redhat 도 설치가 가능하지만솔라리스에 설치하도록 하자.나는 10버전에 설치를 했다.(이미지는 알아서..) 네트워크는 설정을 하고혹시 IP를 변경을 한다면 hosts, /etc/hostname.네트워크명, /etc/

algo79.tistory.com

정말 오랜만에 nis 다시 구축을 해봤다.

위에 적어놓은 글중에 몇가지 오류가 있는것들이 있어서 다시 작성

# domainname test.domain.com; domainname >/etc/defaultdomain

https://algo79.tistory.com/1702

 

솔라리스 네트워크 설정 방법 2(IP변경방법)

솔라리스 네트워크 설정 방법 2 https://algo79.tistory.com/19 솔라리스 10 네트워크 설정(IP셋팅) 1.8139랜카드 인스톨후 재부팅 2./etc/hostname.rtls0 이름 3./etc/hosts 사설아이피 이름 loghost 4./etc/defaultrouter 192.1

algo79.tistory.com

# vi /etc/hosts

192.168.0.4 test test.doamin.com

IP 설정은 hosts 에 등록을 해야 하기 때문에 hosts 에 사용할 IP를 등록 하자.

 

# touch /etc/ethers

# touch /etc/netgroup

# touch /etc/bootparams

# touch /etc/timezone

위 파일생성은 nis 설치 할때 파일이 없어서 에러 뜨기 때문에 먼저 생성해줘야 한다.

 

# cd /var/yp

# ypinit -m

하면 설치가 완료 된다.

 

서비스 시작은

/usr/lib/netsvc/yp/ypstart

서비스 중단은

/usr/lib/netsvc/yp/ypstop

적용은

# cd /var/yp

# make

make 가 없다면

https://algo79.tistory.com/1693

 

솔라리스10 make 설치 방법

솔라리스10 make 설치 방법 ㅎㅎㅎ 기본 버전을 설치 해서 그런가 make 가 없다;;; http://download.nust.na/pub3/solaris/sunfreeware/pub/unixpackages/x86/5.10/ Index of /pub3/solaris/sunfreeware/pub/unixpackages/x86/5.10 download.nust.n

algo79.tistory.com

위 방법으로 설치

 

자동 마운트(/net 이나 /home 으로 automount) 를 하기 위한 설정은

# vi /etc/auto_master

/net        -hosts        -nouid,nobrowse

/home    auto_home      -nobrowse

/xfn        -nfn

/-        auto_direct

아래 2줄 추가 해주자.

 

이제 NIS 서버에 계정을 생성을 해주고

useradd 계정 생성

passwd 암호 생성

 

# vi /etc/passwd 

에서 환경 수정

test:x:100::test:/home/test:bin/sh

test:x:100:test:test:/home/test/bin/sh 으로 변경해주자 test는 장비명이다.

원하는 옵션을 넣어서 bash sh csh 이나 기타 설정을 해주면 된다.

 

# vi /etc/auto_home

test test:/user/test(test명의 장비를 user/test 폴더를 automount 를 하겠다는거다)

나중에 nis 연결된 장비에서 /net/test/user/test 로 이동을 하면 test 폴더에 있는 파일들을 모든 장비에서 사용이 가능하다.

 

# vi /etc/hosts

192.168.0.55 test

192.168.0.44 test2

 이런식으로 hosts 등록 해주고 적용은

# cd /var/yp

# make

해주면 된다.!!

반응형