n-n

표준 퍼미션 설정에 관련하여 ... 일단 메모 본문

Linux/CentOS 5.x

표준 퍼미션 설정에 관련하여 ... 일단 메모

n-_-n 2009. 3. 24. 15:13

음냐...
지금까지 서버 관리해오면서 무시해오고 있었던 것인데,
왠지 불안한 조짐이 보여서,
표준 퍼미션에 대해서 정보를 찾고 있는 중이다.

우선은 일부분만이라도 퍼미션을 조정하고 나중에 자료 정리를 하도록 하자.

현재 검색해서 보니 자료들이 예전 커널들의 리눅스가 대부분이라,
CentOS 5.2 에서 퍼미션 조정을 하는 과정에서
파일/디렉토리가 존재하지 않는다는 에러가 많이 뜬다... 쩝...

암튼... 잊어버리지 않도록 우선 메모하는 차원으로 자료를 기록하겠다.

검색 결과 기록

linux 보안 퍼미션 - Google 검색
http://www.google.co.kr/search?complete=1&hl=ko&lr=&newwindow=1&q=linux+%EB%B3%B4%EC%95%88+%ED%8D%BC%EB%AF%B8%EC%85%98&start=10&sa=N

재후니의 인터넷 세상 이야기 __ 리눅스 보안 퍼미션 설정 [2002년에 작성했던...]
http://www.jaehun.org/70

BLUE STUDY :: 표준 Permission 설정
http://study.ibluerain.com/41

[root@localhost ~]# chmod 711 /bin
[root@localhost ~]# chmod 700 /boot
[root@localhost ~]# chmod 711 /dev
[root@localhost ~]# chmod 600 /dev/audio*
[root@localhost ~]# chmod 600 /dev/dsp*
[root@localhost ~]# chmod 711 /etc
[root@localhost ~]# chmod 640 /etc/conf.modules
chmod: cannot access `/etc/conf.modules': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 750 /etc/cron.daily/ /etc/cron.hourly/ /etc/cron.monthly/ /etc/cron.weekly/
[root@localhost ~]# chmod 640 /etc/crontab
[root@localhost ~]# chmod 750 /etc/dhcpcd
chmod: cannot access `/etc/dhcpcd': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/esd.conf
[root@localhost ~]# chmod 640 /etc/ftpaccess
chmod: cannot access `/etc/ftpaccess': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/ftpconversions
chmod: cannot access `/etc/ftpconversions': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/ftpgroups
chmod: cannot access `/etc/ftpgroups': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 650 /etc/ftphosts
chmod: cannot access `/etc/ftphosts': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/ftphosts
chmod: cannot access `/etc/ftphosts': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/ftpusers
chmod: cannot access `/etc/ftpusers': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/gettydefs
chmod: cannot access `/etc/gettydefs': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/hosts.allow
[root@localhost ~]# chmod 640 /etc/hosts.deny
[root@localhost ~]# chmod 640 /etc/hosts.equiv
chmod: cannot access `/etc/hosts.equiv': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/inetd.conf
chmod: cannot access `/etc/inetd.conf': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 750 /etc/rc.d/init.d/
[root@localhost ~]# chmod 740 /etc/rc.d/init.d/syslog
[root@localhost ~]# chmod 640 /etc/inittab
[root@localhost ~]# chmod 640 /etc/ld.so.conf
[root@localhost ~]# chmod 600 /etc/lilo.conf
chmod: cannot access `/etc/lilo.conf': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/modules.conf
chmod: cannot access `/etc/modules.conf': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 644 /etc/motd
[root@localhost ~]# chmod 640 /etc/printcap
[root@localhost ~]# chmod 644 /etc/profile
[root@localhost ~]# chmod 640 /etc/rc.d/
[root@localhost ~]# chmod 640 /etc/securetty
[root@localhost ~]# chmod 640 /etc/sendmail.cf
chmod: cannot access `/etc/sendmail.cf': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 600 /etc/shutdown.allow
chmod: cannot access `/etc/shutdown.allow': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 644 /etc/ssh_config
chmod: cannot access `/etc/ssh_config': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/ssh_host_key
chmod: cannot access `/etc/ssh_host_key': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/ssh_host_key.pub
chmod: cannot access `/etc/ssh_host_key.pub': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 644 /etc/ssh_host_key.pub
chmod: cannot access `/etc/ssh_host_key.pub': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/sshd_config
chmod: cannot access `/etc/sshd_config': そのようなファイルやディレクトリはありません
[root@localhost ~]# chmod 640 /etc/syslog.conf
[root@localhost ~]# chmod 640 /etc/updatedb.conf
[root@localhost ~]# chmod 751 /home/
[root@localhost ~]# chmod 700 /home/samba/
[root@localhost ~]# chmod 751 /lib
[root@localhost ~]# chmod 750 /mnt
[root@localhost ~]# chmod 700 /root
[root@localhost ~]# chmod 751 /sbin
[root@localhost ~]# chmod 1777 /tmp
[root@localhost ~]# chmod 751 /usr
[root@localhost ~]# chmod 751 /usr/*
[root@localhost ~]# chmod 751 /usr/X11R6
[root@localhost ~]# chmod 751 /usr/bin/
[root@localhost ~]# chmod 755 /usr/bin/*
[root@localhost ~]# chmod 751 /usr/sbin/
[root@localhost ~]# chmod 755 /usr/sbin/*
[root@localhost ~]# chmod 755 /var
[root@localhost ~]# chmod 711 /var/log
[root@localhost ~]# chmod 600 /var/log/*
[root@localhost ~]# chmod 771 /var/spool/mail


시간 날 때 다시 한 번 점검해보자.... 쩝....
Comments