Linux文件特殊权限 SUID/SGID/Sticky Bit
1、setuid、setgid
先看个实例,查看你的/usr/bin/passwd 与/etc/passwd文件的权限
[root@MyLinux ~]# ls -l /usr/bin/passwd /etc/passwd
-rw-r--r-- 1 root root 1549 08-19 13:5
使用chown命令可以修改文件或目录所属的用户:
linux文件隐藏属性
chattr (配置文件案隐藏属性)
[root@www ~]# chattr [+-=][ASacdistu] 档案或目录名称
选项与参数:
+
查看CPU信息(型号)
# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
8 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
IT运维的四件要事 编写shell脚本,计算1-100的和。
编写shell脚本,计算1-100的和
# cat 1.sh
#! /bin/bash
sum=0
编写shell脚本,判断输入的IP是否正确(IP的规则是,n1.n2.n3.n4,其中1<n1<255, 0<n2<255, 0<n3<255, 0
批量新建系统账号Shell脚本
#!/bin/bash #this shell is useradd more #1.check account1.txt and get username #2.create useradd #3.update passwd #2015-7-16 export&nb