您的位置:首页 > 其它

Cisco路由器上配置DHCP全程详解

2009-07-16 23:27 561 查看
#bin/bash
chmod 711 /home
chmod 711 /etc
chmod 711 /
chmod 711 /usr
chmod 711 /usr/local
chmod 711 /proc
chmod 711 /mnt
chmod 711 /opt
chmod 711 /misc
chmod 711 /dev
chmod 711 /boot
chmod 711 /www
chmod 711 /var

#Apache,MySql,php 权限设置
chmod 700 /usr/local/apache
chmod 700 /usr/local/mysql
chmod 700 /usr/local/php
chmod 700 /usr/local/pureftpd
chmod 700 /usr/local/

#命令执行权限
chmod 100 /usr/bin/top
chmod 100 /usr/bin/pstree
chmod 100 /usr/bin/w
chmod 100 /bin/ps
chmod 100 /usr/bin/who
chmod 100 /usr/bin/find
chmod 100 /bin/df
chmod 100 /bin/netstat
chmod 100 /sbin/ifconfig
chmod 100 /usr/sbin/lsof
chmod 100 /usr/bin/make
chmod 100 /usr/bin/gcc
chmod 100 /usr/bin/g++
chmod 100 /usr/bin/c++
chmod 100 /bin/ping
chmod 100 /usr/bin/crontab
chmod 100 /bin/ps
chmod 100 /usr/bin/locate
chmod 100 /usr/bin/whereis
chmod 100 /usr/bin/free
chmod 750 /usr/bin/ftpwho
chmod 710 /usr/bin/finger
chmod 750 /usr/bin/fwhois
chmod 750 /usr/bin/g++
chmod 750 /usr/bin/gcc
chmod 750 /usr/bin/i386-redhat-linux-gcc
chmod 750 /usr/bin/ifnames
chmod 750 /usr/bin/killall
chmod 500 /usr/bin/lprm
chmod 500 /usr/bin/lpq
chmod 500 /usr/bin/lpr
chmod 750 /usr/bin/last
chmod 750 /usr/bin.lastlog
chmod 750 /usr/bin/mc
chmod 750 /usr/bin/make
chmod 750 /usr/bin/nslookup
chmod 750 /usr/bin/nohup
chmod 750 /usr/bin/python
chmod 750 /usr/bin/python1.5
chmod 750 /usr/bin/pstree
chmod 750 /usr/bin/rb
chmod 750 /usr/bin/rlogin
chmod 750 /usr/bin/rx
chmod 750 /usr/bin/rz
chmod 750 /usr/bin/rsync
chmod 750 /usr/bin/rsh
chmod 750 /usr/bin/sb
chmod 750 /usr/bin/slocate
chmod 750 /usr/bin/sx
chmod 750 /usr/bin/sz
chmod 750 /usr/bin/talk
chmod 750 /usr/bin/telnet
chmod 550 /usr/bin/top
chmod 750 /usr/bin/users
chmod 750 /usr/bin/uptime
chmod 750 /usr/bin/which
chmod 550 /usr/bin/w
chmod 2550 /usr/bin/wall
chmod 750 /usr/bin/who
chmod 4750 /usr/bin/write
chmod 700 /usr/bin/yacc
chmod 600 /etc/exports
chmod 600 /etc/fstab
chmod 2750 /sbin/netreport
chmod 750 /sbin/fdisk
chmod 750 /sbin/ifconfig
chmod 750 /sbin/chkconfig
chmod 750 /sbin/dump
chmod 750 /bin/linuxconf
chmod 4700 /bin/mount
chmod 4700 /bin/umount
chmod 550 /bin/ps
chmod 750/bin/netstat
chmod 750 /bin/dmesg
chmod 750 /bin/df
chmod 700 /bin/dd
chmod 750 /bin/gawk
chmod 750 /bin/gawk-3.0.6
chmod 750 /bin/kill
chmod 750 /bin/ln
chmod 750 /bin/mail
chmod 750 /bin/mknod
chmod 4750 /bin/ping
chmod 750 /bin/rpm
chmod 750 /bin/sleep
chmod 750 /bin/touch
chmod 4700 /usr/usernetctl
chmod 700 /usr/sbin/utempter
chmod 750 /usr/sbin/traceroute
chmod 750 /usr/sbin/crond
chmod 700 /usr/sbin/lpc
chmod 700 /usr/sbin/chroot
chmod 700 /usr/sbin/mrtg
chmod 700 /usr/sbin/mrtg2
chmod 700 /usr/sbin/lsof
chmod 750 /usr/bin/as
chmod 4700 /usr/bin/at
chmod 750 /usr/bin/as86
chmod 750 /usr/bin/bcc
chmod 750 /usr/bin/c++
chmod 750 /usr/bin/c++decl
chmod 750 /usr/bin/c++filt
chmod 750 /usr/bin/cdecl
hmod 4700 /usr/bin/chage
chmod 4750 /usr/bin/crontab
chmod 4750 /usr/bin/chfn
chmod 4750 /usr/bin/chsh
chmod 750 /usr/bin/dig
chmod 750 /usr/bin/egcs
chmod 750 /usr/bin/find
chmod 750 /usr/bin/ftp
chmod 700 /usr/bin/perl
chmod 700 /usr/bin/python
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: