1. initscripts-7.93.11.EL-1 : /etc/inittab, /etc/rc*, /etc/sysconfig/*, /sbin/ifup,/sbin/ifdown,/sbin/redhat-support-check,/sbin/initlog, etc. 2.util-linux-2.12a-16.EL4.6 : /bin/mount, /bin/login, /bin/umount,/bin/kill, /etc/pam.d/login,/sbin/fdisk, etc. 3.filesystem-2.3.0-1 : /initrd, /proc, /root, etc. All filesystem related. 4.SysVinit-2.85-34 : /sbin/halt, /sbin/init, /sbin/poweroff, /sbin/reboot, /sbin/shutdown, /sbin/telinit, etc. 5.kernel-utils-2.4-13.1.48, kernel-devel-2.6.9-5.EL, kernel-2.6.9-5.EL, etc. All kernel related packages contain RHEL4 kernel and tools. 6.Setup-2.5.37-1.1 : /etc/aliases, /etc/bashrc, /etc/environment, /etc/exports, /etc/filesystems, /etc/group, /etc/passwd, /etc/hosts.allow, /etc/hosts.deny, /etc/profile, /etc/services, /etc/securetty, /etc/shells, /etc/printcap, /etc/inputrc, etc. 7.bash-3.0-19.2 : /bin/bash, /bin/sh, /etc/skel/*, etc. 8.rpm-4.3.3-7_nonptl and all rpm related packages contain rpm related binaries. 9.Grub-0.95-3.1 : /boot/grub/*, /sbin/grub*, /usr/share/grub/*, etc. 10. /etc/fstab 和 /boot/grub/grub.conf 或 menu.lst不属于任何一个包,是系统安装后产生的,所以必须手动修复!!
dd if=/dev/zero of=/dev/hda bs=446 count=1
edquota -t
lvextend -L +sizes lvname; ext2online /path/to/lvname
mdadm -C /dev/md0 -l5 --raid-devices=/dev/xx /dev/yy /dev/zz ... --spare-device= /dev/qq -v
mdadm –--detail –--scan >/etc/mdadm.conf
mdadm /dev/md0 -f /dev/xx -r /dev/xx -a /dev/nn -f set faulty, -r hot remove device, -a hot add device
smbtar -s host -x share -d dir -u user -p passwd -t tarfile
smbtar -r -s host -x share -d dir -u user -p passwd -t tarfile
smbclient //host/share -U user
smbclient -L host -N (验证samba是否起了); smbtree
testparm /etc/samba/smb.conf host/ip
smbpasswd -a|-e|-d|-x user -a add -e enable -d disable -x delete
auth required /lib/security/pam_stack.so service=system-auth auth required pam_unix.so auth required pam_listfile.so item=user sense=deny file=/etc/security/dovecot.deny onerr=fail account required /lib/security/pam_stack.so service=system-auth #account required pam_access.so account required pam_unix.so
auth required pam_listfile.so item=user sense=deny file=/path/to/nis.deny onerr=fail
UserDir enabled user_list UserDir disabled user_list
auth sufficient pam_rootok.so
auth required pam_wheel.so
auth required pam_unix.so
gpg –gen-key
gpg --list-keys gpg --list-public-keys gpg –list-secret-keys
gpg --export -a userID >public.key gpg --export-secret-key -a userID>secret.key
gpg --import key.file
gpg -se -r userID file
gpg -e -r userID file
gpg -sc -r userID file
gpg -c -r userID file
gpg -b -r userID file
gpg [--decrypt] file
gpg --verify sig.file
gpg --delete-key userID gpg --delete-secret-key userID gpg --delete-secret-and-public-key userID
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7507082/viewspace-859011/ ,如需转载,请注明出处,否则将追究法律责任。