Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

프로필 서버 세팅

YeonGyu Jeong edited this page Aug 21, 2018 · 1 revision

프로필 서버 세팅

프로필 서버란?

프로필 서버는 윈도우 사용자의 개인 파일들(user profile)을 저장할 서버를 의미합니다.

프로필 서버가 되기 위한 요구 사항

  • ssh, sftp 서버가 켜져 있어야 합니다.
    • (선택 사항) 호스트 키 검증을 위해 호스트 RSA키를 제공해야 합니다.
    • 비밀번호를 사용한 사용자 인증이 가능해야 합니다.
  • LDAP을 통해 ID 서버로부터 사용자 인증이 가능하도록 PAM 모듈 구성이 되어있어야 합니다.
  • ssh 세션 내에서 아래 명령어를 실행할 수 있어야 합니다.
    • truncate
    • stat
    • touch
    • getfattr
    • setfattr
  • 커널과 프로필이 저장될 파일 시스템이 xattr을 지원해야 합니다.
    • 지원 여부는 아래와 같이 확인 가능합니다.
      file_system='ext4'
      profile_partition='sda2'
      
      cat "/proc/fs/$file_system/$profile_partition/options" | grep xattr
      # user_xattr이 출력되면 지원

프로필이 저장될 폴더 생성

  • 프로필이 저장될 폴더를 만든 후, 하위 폴더로 '.sync' 폴더를 만들어야 합니다.
  • 위 두 폴더의 모드는 1777로 설정합니다.
  • 아래는 생성 예시입니다.
profile_directory='/srv/profiles'

mkdir "$profile_directory"
mkdir "$profile_directory/.sync"
chown -R root:root "$profile_directory"
chmod 1777 "$profile_directory"
chmod 1777 "$profile_directory/.sync"