/etc/cron.deny文件就是用于控制不让哪些用户使用Crontab的功能。
postfix master.cf文件中${extension}的意思
一直忘记master.cf里面的${extension}代表的意思,今天又再找一次,记录在下方
An example using address extensions (ie user+extension@domain.com (don’t forget to define the proper recipient_delimiter in Postfix’s main.cf)) to deliver to the folder ‘extension’ in your maildir (If you wish to preserve the case of ${extension}, remove the ‘hu’ flags, and be sure to utilize Modifiers in your dovecot.conf for mail locations and other configuration parameters that are expecting lower case):
ssh只允许指定的用户登陆
auth required pam_listfile.so item=user sense=allow file=/etc/sshusers
onerr=fail
然后在/etc下建立sshusers文件,编辑这个文件,加入你允许使用ssh服务的用户名,不用重新启动sshd服务。 More »
centos单用户模式:修改 ROOT密码和grub加密
Linux 系统处于正常状态时,服务器主机开机(或重新启动)后,能够由系统引导器程序自动引导 Linux 系统启动到多用户模式,并提供正常的网络服务。如果系统管理员需要进行系统维护或系统出现启动异常时,就需要进入单用户模式或修复模式对系统进行管理了。使用单用户模式有一个前提,就是您的系统引导器(grub)能正常工作,否则要进行系统维护就要使用修复模式。特注:进入单用户模式,没有开启网络服务,不支持远程连接 More »
在Linux下关闭系统的蜂鸣器
More »
64位XEN安装32位linux
yum的时候一定会出错,后来发现解决办法
echo “i686-redhat-linux” > /etc/rpm/platform
这样就能yum32位的软件了
snmpd 监听tcp端口
①创建/etc/snmp/snmpd.options,内容如下:
OPTIONS=”-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a TCP:1161″
②设置selinux允许snmpd侦听1161端口:
sudo /usr/sbin/semanage port -a -t snmp_port_t -p tcp 1161
③sudo /sbin/service snmpd restart即可
修改linux系统时间
时区的配置文件是/etc/sysconfig/clock。用tzselect命令就可以修改这个配置文件,根据命令的提示进行修改就好了。
2.马上生效
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock