Linux ETC

ftp 및 shell 접속시 홈디렉토리 변경은 아래와 같은 설정 변경을 통해 가능 합니다.


1. 사용자 정보 편집
[root@hostway test]# vi /etc/passwd
- 변경 전 : hostway:x:500:500::/home/hostway:/bin/bash
- 변경 후 : hostway:x:500:500::/home/test:/bin/bash



2. 권한 부여
[root@hostway test]# chown hostway:hostway /home/test/



3. ftp 데몬 재구동
[root@hostway test]# /etc/init.d/vsftpd restart

or

usermod -d  /home/test 사용자아이디