LinuxFreeBSD

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ LinuxFreeBSD ] in KIDS
글 쓴 이(By): yschoe (마술사)
날 짜 (Date): 1998년 9월 11일 금요일 오후 11시 36분 06초
제 목(Title): Re: [질문]Linux에서 NIS사용하는 방법은

automounter로는 amd를 사용합니다.

/etc/amd.conf



/etc/amd.homes 

란걸 두고, 

/etc/amd.conf 에는
# amd map for mounting /export/home/local from ale
# and home directories from local hosts.
#/defaults fs:=${autodir}/${rhost}/root/${rfs};opts=nosuid,nodev
/defaults       fs:=${autodir}/home/${rhost}/${rfs};type:=nfs;\
opts:=rw,intr,grpid,nosuid
# /export가 remote nfs서버에서 export된 홈디렉토리용의 파티션
# 호스트 이름이 'remote'
remote host!=${key};type:=nfs;rhost:=${key};rfs:=/export \
                host==${key};type:=link;fs:=/export
# 홈 디렉토리가 있는 모든 호스트의 entry를 만들어 주시면 되고요.

/etc/amd.homes에는
# /etc/amd.homes
/defaults       type:=link
username  fs:=/tmp_mnt/remotehostname/subdir/username
#      --nsf써버이름- ---------------
# /export/subdir/username 이 실제
# 홈 디렉토리의 full path
#  각 유저에 대해서 이걸 반복

그리고 나서 /etc/sysconfig/amd에다가

ADIR=/.automount
MOUNTPTS='/tmp_mnt /etc/amd.conf /u /etc/amd.homes'
AMDOPTS=

이렇게 넣어주시면 됩니다. 그런데, 이건 Redhat 4.2의 경우니.. 다른 
디스트리뷰션이라면 위에 말한것 처럼 /etc/rc*.d 나 /etc/init.d 에서 
amd라는걸 찾아서 바로 위의 MOUNTPTS를 amd 의 아규먼트로 주시면 됩니다.



[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.