<div><span style="color:#333333;font-family:'Malgun Gothic';font-size:13.3333px;">본삭금 걸었습니다~</span></div> <div><br></div>먼저.. 설명을 좀 해야할거 같습니다. <div><br></div> <div>예를들어 ABC 유저와 DEF 유저가 있다고 하고..</div> <div><br></div> <div>/home/ABC 내에 DEF 유저가 만든 파일이 하나 있습니다. 예를 들어 test.txt</div> <div>근데 ABC 내부에 DEF가 파일을 만들수 있나요? 권한이 안되서 안될텐데..</div> <div>아무튼.. 실질적으로 만들어져있으니...;; 1시간마다 로테이션 걸려서 자동 생성되는 파일입니다.</div> <div><br></div> <div>ABC 유저는 ssh 접속을 막고 sftp로만 접속하도록 설정하였습니다.</div> <div><br></div> <div>이후 상위폴더로 접근할 수 없도록 다음과 같이 설정하였습니다.</div> <div><span style="color:#333333;font-family:'Malgun Gothic';font-size:13.3333px;"># vi /etc/ssh/sshd_config</span></div> <div> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span style="font-size:10pt;">Match User ABC</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span lang="ko" style="font-size:10pt;"><span style="white-space:pre;"> </span>ChrootDirectory /home/ABC</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span lang="ko"><span style="white-space:pre;"> </span>ForceCommand internal-sftp</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span lang="ko"><span style="white-space:pre;"> </span>X11Forwarding no</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span lang="ko"><span style="white-space:pre;"> </span>AllowTCPForwarding no</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span style="font-size:13.3333px;"># chown root /home/ABC</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span style="font-size:13.3333px;"># chmod 755 /home/ABC</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span lang="ko"><br></span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span lang="ko">문제는 상위폴더를 막은 이후에 생깁니다. sftp로 ABC로 접속하면 DEF가 만든 test.txt 가 안보입니다.</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><span lang="ko">상위폴더 막기전에는 보이는데.. 막은 이후부터 보이질 않네요.;;;</span></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;"><br></p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;">test.txt 가 보이도록 해야하는데.. 어떻게 방법이 없어서.. 여기다 올리게 되었습니다.</p> <p style="margin:0in;color:#333333;font-family:'Malgun Gothic';font-size:10pt;">혹시나 방법 아시는 분들이 없을까요?</p></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.