|
/etc/exports 파일 설정예제
share-directory client1(options,,,) client2(options,,,)
share-directory : 공유할 디렉토리명
client1 : 공유 디렉토리에 접근할수 있도록 허용된 호스트들
options : 접근 권한설정
ro : 클라이언트는 공유 디렉토리에 대해 읽기만 가능하다,
rw : 클라이언트는 공유 디렉토리에 대해 읽기/쓰기가 가능하다.
no_root_squash : 클라이언트의 root는 서버의 root와 같은 권한을 가진다.
No_subtree_check : 공유된 디렉토리내에 있는 서브 디렉토리들을 공유에서 제외 시키는 경우 설정
[root@apple /]# cat /etc/exports
/home/user01 *.gcc.go.kr(ro)
/export/ftp/pub 192.168.1.1/255.255.255.0(ro)
/ banana(rw),kiwi(rw,no_root_squash)
NFS 서버 데몬 구동
# /etc/init.d/portmap start
# /etc/init.d/nfs start
# exportfs -v
현재 커널에서 알고 있는 익스포트 리스트를 출력한다
# exportfs -ar
/etc/export 파일이 커널에 적용되도록 한다.
# nfsstat
NFS 상태 정보를 출력한다.
|