linux执行脚本文件权限,linux下文件权限执行脚本

#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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值