VeriCras
12/7/2015 - 4:02 AM

Synology Nas 환경설정 파일 및 쉘 명령어

Synology Nas 환경설정 파일 및 쉘 명령어

각종 환경설정 파일 경로

아파치 환경설정

  • httpd.conf
  • vi /etc/httpd/conf/httpd.conf
  • httpd-vhost.conf
  • vi /etc/httpd/sites-enabled-user/httpd-vhost.conf-user
  • httpd-userdir.conf
  • vi /etc/httpd/conf/extra/httpd-userdir.conf-user

기타

  • rc.local (시작시 실행 스크립트 설정)
  • vi /etc/rc.local

각종 쉘 명령어

서비스 관련

Root

  • sudo su -

Apache

  • Restart
  • synoservicecfg --restart httpd-user
  • /usr/bin/httpd -k restart

SSH

  • Stop
  • synoservicecfg --stop ssh-shell
  • Start
  • synoservicecfg --start ssh-shell

사용자 계정

  • 비활성화
  • /usr/syno/sbin/synouser --modify vericras "[이름]" 1 [이메일]
  • 활성화
  • /usr/syno/sbin/synouser --modify vericras "[이름]" 0 [이메일]

춡처 : 작업 스케줄러에 공유 접속차단 스크립트 만드는 거 어려울까요? (시놀로지 NAS 순수 사용자 모임 - Synology storage 클라우드) |작성자 isul

패키지 관련

Antivirus Essential

  • Update
  • /var/packages/AntiVirus/target/bin/synoavscan --update

쉘 명령어 파일

모든 쉘 명령어는 [filename].sh로 저장하여 작업스케줄러 등록하여 실행가능

  #!/bin/sh
  synoservicecfg --stop ssh-shell

반드시 파일 권한은 ssh로 접속한 후 chmod 755 [filename].sh 로 하여 실행권한을 줘야 함

Nas Information

  • Model : Synology 713+
  • DSM Ver. : 6.+