当前位置: 首页 > news >正文

linux文件下脚本权限,51CTO博客-专业IT技术博客创作平台-技术成就梦想

#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

相关文章:

  • c语言程序设计逗号作用,关于c语言逗号表达式的运算规则知识点
  • C语言开发动态内存的方法,C语言动态内存分配的详解
  • C语言中99 0,C语言中 \0 代表什么?
  • c语言数字星期几,计算任何一天是星期几的C语言源代码.
  • 图片c语言是输出矩阵吗,蛇形矩阵输出是要怎么写代码,感觉没有眉目啊,大佬能说一下思想吗...
  • ubuntu nfs linux,Ubuntu 14.04下NFS安装配置
  • i686-pc linux gnu,交叉编译: --host --build --target到底什么意思?
  • android 字母好友,如何获取android手机联系人并按字母展示(二)
  • sony 播放器 android,Hi-Res Audio Player
  • adb更新android分区,Android adb升级OTA
  • android 反射执行方法,Android中怎么通过反射调用setUsbTethering()方法
  • iphone没有android安全,Android安全性与iPhone一样吗
  • android listview checkbox 选中状态,Android ListView专题之十  checkbox选中的值在翻屏时会跳来跳去...
  • 鸿蒙系统翻车了,鸿蒙系统翻车了?任正非承认忽视了关键问题,称华为犯下大错误...
  • android10侧滑返回黑屏,Android实现类似IOS右滑返回的效果(原因分析及解决办法)
  • 【许晓笛】 EOS 智能合约案例解析(3)
  • Java 网络编程(2):UDP 的使用
  • Js基础知识(四) - js运行原理与机制
  • laravel5.5 视图共享数据
  • react-core-image-upload 一款轻量级图片上传裁剪插件
  • vuex 学习笔记 01
  • 大型网站性能监测、分析与优化常见问题QA
  • 好的网址,关于.net 4.0 ,vs 2010
  • 基于Javascript, Springboot的管理系统报表查询页面代码设计
  • 开源中国专访:Chameleon原理首发,其它跨多端统一框架都是假的?
  • 前端每日实战 2018 年 7 月份项目汇总(共 29 个项目)
  • 前端每日实战:61# 视频演示如何用纯 CSS 创作一只咖啡壶
  • 网页视频流m3u8/ts视频下载
  • ​​​​​​​​​​​​​​Γ函数
  • ​2020 年大前端技术趋势解读
  • ​Spring Boot 分片上传文件
  • #经典论文 异质山坡的物理模型 2 有效导水率
  • $.each()与$(selector).each()
  • (2)MFC+openGL单文档框架glFrame
  • (7)STL算法之交换赋值
  • (安卓)跳转应用市场APP详情页的方式
  • (二)linux使用docker容器运行mysql
  • (已解决)什么是vue导航守卫
  • (原創) 是否该学PetShop将Model和BLL分开? (.NET) (N-Tier) (PetShop) (OO)
  • (转)ObjectiveC 深浅拷贝学习
  • (转载)Google Chrome调试JS
  • ... 是什么 ?... 有什么用处?
  • .bat批处理(一):@echo off
  • .Net Core/.Net6/.Net8 ,启动配置/Program.cs 配置
  • .NET国产化改造探索(三)、银河麒麟安装.NET 8环境
  • .Net转Java自学之路—基础巩固篇十三(集合)
  • /etc/shadow字段详解
  • [【JSON2WEB】 13 基于REST2SQL 和 Amis 的 SQL 查询分析器
  • [2019.2.28]BZOJ4033 [HAOI2015]树上染色
  • [C]编译和预处理详解
  • [C++]C++入门--引用
  • [C++随笔录] 红黑树
  • [CC2642R1][VSCODE+Embedded IDE+IAR Build+Cortex-Debug] TI CC2642R1基于VsCode的开发环境
  • [C语言]一维数组二维数组的大小
  • [HDU] 1054 Strategic Game 入门树形DP