linux¿ÚÁîÏà¹Ø£¨passwd/shadow£©
ÔÚlinuxÖУ¬¿ÚÁîÎļþÔÚ/etc/passwdÖУ¬ÔçÆÚµÄÕâ¸öÎļþÖ±½Ó´æ·Å¼ÓÃܺóµÄÃÜÂ룬ǰÁ½Î»ÊÇ"ÑÎ"Öµ£¬ÊÇÒ»¸öËæ»úÊý£¬ºóÃæ¸úµÄÊǼÓÃܵÄÃÜÂ롣ΪÁË°²È«£¬ÏÖÔÚµÄlinux¶¼ÌṩÁË /etc/shadowÕâ¸öÓ°×ÓÎļþ£¬ÃÜÂë·ÅÔÚÕâ¸öÎļþÀïÃ棬²¢ÇÒÊÇÖ»ÓÐroot¿É¶ÁµÄ¡£
ÏÂÃæÀ´·ÖÎöÒ»ÏÂ/etc/passwdÎļþ£¬ËûµÄÿ¸öÌõÄ¿ÓÐ7¸öÓò£¬·Ö±ðÊÇÃû×Ö£ºÃÜÂ룺Óû§id£º×éid£ºÓû§ÐÅÏ¢£ºÖ÷Ŀ¼£ºshell ÀýÈ磺ynguo:x:509:510::/home/ynguo:/bin/bash
ÔÚÀûÓÃÁËshadowÎļþµÄÇé¿öÏ£¬ÃÜÂëÓÃÒ»¸öx±íʾ£¬ÆÕͨÓû§¿´²»µ½ÈκÎÃÜÂëÐÅÏ¢¡£Èç¹ûÄã×ÐϸµÄ¿´¿´Õâ¸öÎļþ£¬»á·¢ÏÖһЩÆæ¹ÖµÄÓû§Ãû£¬ËýÃÇÊÇϵ ͳµÄȱʡÕ˺ţ¬È±Ê¡Õ˺ÅÊǹ¥»÷ÕßÈëÇֵij£ÓÃÈë¿Ú£¬Òò´ËÒ»¶¨ÒªÊìϤȱʡÕ˺ţ¬ÌرðҪעÒâÃÜÂëÓòÊÇ·ñΪ¿Õ¡£ÏÂÃæ¼òµ¥½éÉÜÒ»ÏÂÕâЩȱʡÕ˺Å
admÓµÓÐÕ˺ÅÎļþ£¬ÆðʼĿ¼/var/admͨ³£°üÀ¨ÈÕÖ¾Îļþ
binÓµÓÐÓû§ÃüÁîµÄ¿ÉÖ´ÐÐÎļþ
daemonÓÃÀ´Ö´ÐÐϵͳÊØ»¤½ø³Ì
gamesÓÃÀ´ÍæÓÎÏ·
haltÓÃÀ´Ö´ÐÐhaltÃüÁî
lpÓµÓдòÓ¡»úºǫ́´òÓ¡Îļþ
mailÓµÓÐÓëÓʼþÏà¹ØµÄ½ø³ÌºÍÎļþ
newsÓµÓÐÓëusenetÏà¹ØµÄ½ø³ÌºÍÎļþ
nobody±»NFS£¨ÍøÂçÎļþϵͳ£©Ê¹ÓÃ
shutdownÖ´ÐÐshutdownÃüÁî
syncÖ´ÐÐsyncÃüÁî
uucpÓµÓÐuucp¹¤¾ßºÍÎļþ
´«Í³ÉÏ£¬/etc/passwdÎļþÔںܴó·¶Î§ÄÚÊǿɶÁµÄ£¬ÒòΪÐí¶àÓ¦ÓóÌÐòÐèÒªÓÃËûÀ´°ÑUIDת»»ÎªÓû§Ãû¡£ÀýÈ磬Èç¹û²»ÄÜ·ÃÎÊ/etc/passwd£¬ÄÇôls -lÃüÁÏÔʾUID¶ø²»ÊÇÓû§Ãû¡£µ«ÊÇʹÓÿÚÁî²Â²â³ÌÐò£¬¾ßÓмÓÃÜ¿ÚÁîµÄ¿É¶Á/etc/passwdÎļþÓо޴óµÄ°²È«Î£ÏÕ¡£ËùÒÔ³öÏÖÁËÓ°×ÓÎļþ/etc/shadow¡£
Ó°×Ó¿ÚÁîϵͳ°Ñ¿ÚÁîÎļþ·Ö³ÉÁ½²¿·Ö£º/etc/passwdºÍ/etc/shadow¡£Ó°×Ó¿ÚÁîÎļþ±£´æ¼ÓÃܵĿÚÁ/etc/passwdÎļþÖеÄÃÜÂëÈ«²¿±ä³Éx¡£ShadowÖ»ÄÜÊÇroot¿É¶Á£¬´Ó¶ø±£Ö¤ÁË°²È«¡£/etc/shadowÎļþÿһÐеĸñʽÈçÏ£º
Óû§Ãû£º¼ÓÃÜ¿ÚÁÉÏÒ»´ÎÐ޸ĵÄʱ¼ä£¨´Ó1970Äê1ÔÂ1ÈÕÆðµÄÌìÊý£©£º¿ÚÁîÔÚÁ½´ÎÐ޸ļäµÄ×îСÌìÊý£º¿ÚÁîÐÞ¸Ä֮ǰÏòÓû§·¢³ö¾¯¸æµÄÌìÊý£º¿ÚÁîÖÕÖ¹ºóÕ˺ű»½ûÓõÄÌìÊý£º´Ó1970Äê1ÔÂ1ÈÕÆðÕ˺ű»½ûÓõÄÌìÊý£º±£ÁôÓò¡£
ÀýÈ磺root:$1$t4sFPHBq$JXgSGgvkgBDD/D7FVVBBm0:11037:0:99999:7:-1:-1:1075498172
bin:*:11024:0:99999:7:::
daemon:*:11024:0:99999:7:::ȱʡÇé¿öÏ£¬¿ÚÁî¸üв¢²»¿ªÆô¡£Èç¹ûÄãµÄϵͳûÓÐÆô¶¯Ó°×ÓÎļþ£¬ÄÇôÔËÐÐpwconv³ÌÐò¡£
####################
Added by iceknife on 20100601
####################
shadow²ÉÓÃDES¼ÓÃÜ·½Ê½£¬ÆƽⷽʽΪ±©Á¦Æƽ⣬¿ÉÒÔ
Ïà¹ØÎĵµ£º
½ñÌìʹÓÃselect±à³Ì£¬ÎÊÌâºÜ¶à£¬ÒÔÇ°ÕæµÄûÓÐ×ÐϸÑо¿¹ý¡£
³öÏÖÁËÒÔϼ¸¸öÎÊÌâ
1 recvfromÔÚ½ÓÊÕʱ£¬Ìṩ¸øϵͳµ÷ÓõÄ×îºóÒ»¸ö²ÎÊý£¬¿Í»§¶ËµÄµØÖ·½á¹¹£¬Æ䳤¶È±ØÐë½øÐгõʼ»¯£¬Èç¹ûΪ0£¬Ôò²»ÄܽÓÊÕÊý¾Ý¡£
2 selectµÄµÚÒ»¸ö²ÎÊýΪËùÓмàÊÓµÄÎļþÃèÊö·ûµÄ×î´óÖµ+1£¬¶ø²»ÊǼàÊÓµÄÎļþÃèÊö·û¸öÊý+1¡£
3 ²»Òª¼àÊÓÄÇЩ¾³£¿ÉÓ ......
²¥·ÅÎļþ
ʹÓà MPlayer ²¥·ÅýÌåÎļþ×î¼òµ¥µÄ·½Ê½ÊÇ£º
mplayer <somefile>
MPlayer »á×Ô¶¯¼ì²âÎļþµÄÀàÐͲ¢¼ÓÒÔ²¥·Å£¬Èç¹ûÊÇÒôƵÎļþ£¬Ôò»áÔÚÃüÁîÐÐÖÐÏÔʾ¸Ã²¥·ÅÎļþµÄ״̬ÐÅÏ¢£»¶ø¼ÙÈçÊÇÊÓƵÎļþµÄ»°£¬Ôò»á´ò¿ªÒ»¸öеIJ¥·Å´°¿Ú¡£
µ¹ÍËÓë¿ì½ø
ÔÚ²¥·ÅÎļþµÄʱºò£¬Äã¿ÉÒÔͨ¹ýÒÔÏÂÈý×é¿ì½Ý¼üÀ´¶Ô²¥·Å½ø³Ì½øÐе¹ÍËÓ ......
´ó¼Ò¶¼ÖªµÀÐÞ¸ÄlinuxϵÄDNS¿ÉÒÔÖ±½ÓÐÞ¸Ä/etc/resolv.conf:
root@xuanfei-desktop:~#vim /etc/resolv.conf
nameserver ip //ÌîÉÏÄãµ±µØʹÓõÄ×î¿ìDNS·þÎñÆ÷IPµØÖ·
nameserver ip
µ±È»Ò²¿ÉÒÔÖ±½ÓʹÓÃÍøÂç¹ÜÀíÆ÷Ð޸ġ£
µ«ÊÇÈç¹ûÄãËùÔÚ»ú¹¹»òÕß¹¤×÷µÄµØ·½±ØÐëÒªÇóÄãÓÃDHCP»ñµÃ×Ô¼º·Ç¹Ì¶¨¶¯Ì¬IP ......
¼¸¸öcpu
more /proc/cpuinfo |grep "physical id"|uniq|wc -l
ÿ¸öcpuÊǼ¸ºË£¨¼ÙÉècpuÅäÖÃÏàͬ£©
more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l
cpuʹÓÃÂÊ
vmstat
ÍƼöС¹¤¾ßnmon£¨aixºÍlinux¶¼ÓУ©
topºó°´Êý×Ö1,¶à¸öcpuµÄ»°»áÏÔʾ¶à¸ö
fdisk -l¿ÉÒÔ¿´µ½¶à¸öÎïÀíÓ²ÅÌ£¬×öÁËÓ²raidÖ»ÄÜ¿´µ½Ò»¸öӲŠ......