Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux ÃüÁî

ÖÚËùÖÜÖª£¬LinuxµÄÎļþȨÏÞÈç:
777;666µÈ£¬ÆäʵֻҪÔÚÏàÓ¦µÄÎļþÉϼÓÉÏUIDµÄȨÏÞ£¬¾Í¿ÉÒÔÓõ½¼ÓȨÏÞÈ˵ÄÉí·ÝÈ¥ÔËÐÐÕâ¸öÎļþ¡£ËùÒÔÎÒÃÇÖ»ÐèÒª½«bash¸´ÖƳöÀ´µ½ÁíÒ»¸öµØ·½£¬
È»ºóÓÃroot¼ÓÉÏUIDȨÏÞ£¬Ö»ÒªÓû§ÔËÐдËShell¾Í¿ÉÒÔÓÃÓÃrootµÄÉí·ÝÀ´Ö´ÐÐÈκÎÎļþÁË¡£
£±.LinuxÏÂÈçºÎÖªµÀij¸ö¶Ë¿ÚÔÚÔËÐÐʲô³ÌÐò

µ±ÎÒÃÇÓÃnetstat -anµÄʱºò£¬ÎÒÃÇÓÐʱºò¿ÉÒÔ¿´µ½ÀàËƵÄÊä³ö£º
udp 0 0 0.0.0.0:32768 0.0.0.0:*
µ«ÊDzéÕÒ/etc/servicesÓÖûÓÐÕâ¸ö¶Ë¿ÚµÄÏà¹Ø˵Ã÷£¬Ôõô°ìÄØ£¿Õâ¸öÊDz»ÊǺڿͳÌÐò£¿ÓÐûÓа취²é¿´¾¿¾¹Ê²Ã´³ÌÐò¼àÌýÔÚÕâ¸ö¶Ë¿Ú£¿
ʹÓÃlsof -i :32768¾Í¿ÉÒÔ¿´µ½£º
COMMAND
PID USER FD TYPE DEVICE SIZE NODE NAME            rpc.statd 603 root 4u
IPv4 953 UDP *:32768            rpc.statd 603 root 6u IPv4 956 TCP
*:32768 (LISTEN)
Ô­À´ÊÇrpcµÄ³ÌÐò¡£
ʹÓÃlsof -i :port¾ÍÄÜ¿´¼ûËùÖ¸¶¨¶Ë¿ÚÔËÐеijÌÐò£¬Í¬Ê±»¹Óе±Ç°Á¬½Ó¡£
£².ÎļþȨÏÞµÄÒ°Ê·
Ò»
¸öÎļþ¶¼ÓÐÒ»¸öËùÓÐÕߣ¬ ±íʾ¸ÃÎļþÊÇË­´´½¨µÄ. ͬʱ£¬ ¸ÃÎļþ»¹ÓÐÒ»¸ö×é±àºÅ£¬ ±íʾ¸ÃÎļþËùÊôµÄ×飬
Ò»°ãΪÎļþËùÓÐÕßËùÊôµÄ×é¡£Èç¹ûÊÇÒ»¸ö¿ÉÖ´ÐÐÎļþ£¬ ÄÇôÔÚÖ´ÐÐʱ£¬ Ò»°ã¸ÃÎļþÖ»ÓµÓе÷ÓøÃÎļþµÄÓû§¾ßÓеÄȨÏÞ. ¶øsetuid£¬ setgid
¿ÉÒÔÀ´¸Ä±äÕâÖÖÉèÖÃ.
setuid: ÉèÖÃʹÎļþÔÚÖ´Ðн׶ξßÓÐÎļþËùÓÐÕßµÄȨÏÞ. µäÐ͵ÄÎļþÊÇ /usr/bin/passwd. Èç¹ûÒ»°ãÓû§Ö´ÐиÃÎļþ£¬ ÔòÔÚÖ´Ðйý³ÌÖУ¬ ¸ÃÎļþ¿ÉÒÔ»ñµÃrootȨÏÞ£¬ ´Ó¶ø¿ÉÒÔ¸ü¸ÄÓû§µÄÃÜÂë.
setgid: ¸ÃȨÏÞÖ»¶ÔĿ¼ÓÐЧ. Ŀ¼±»ÉèÖøÃλºó£¬ ÈκÎÓû§ÔÚ´ËĿ¼Ï´´½¨µÄÎļþ¶¼¾ßÓк͸ÃĿ¼ËùÊôµÄ×éÏàͬµÄ×é.
sticky
bit: ¸Ãλ¿ÉÒÔÀí½âΪ·Àɾ³ýλ. Ò»¸öÎļþÊÇ·ñ¿ÉÒÔ±»Ä³Óû§É¾³ý£¬ Ö÷Ҫȡ¾öÓÚ¸ÃÎļþËùÊôµÄ×éÊÇ·ñ¶Ô¸ÃÓû§¾ßÓÐдȨÏÞ. Èç¹ûûÓÐдȨÏÞ£¬
ÔòÕâ¸öĿ¼ÏµÄËùÓÐÎļþ¶¼²»Äܱ»É¾³ý£¬ ͬʱҲ²»ÄÜÌí¼ÓеÄÎļþ. Èç¹ûÏ£ÍûÓû§Äܹ»Ìí¼ÓÎļþµ«Í¬Ê±²»ÄÜɾ³ýÎļþ£¬ Ôò¿ÉÒÔ¶ÔÎļþʹÓÃsticky
bitλ. ÉèÖøÃλºó£¬ ¾ÍËãÓû§¶ÔĿ¼¾ßÓÐдȨÏÞ£¬ Ò²²»ÄÜɾ³ý¸ÃÎļþ¡£
£³.LinuxÎļþϵͳACLsȨÏÞ¿ØÖÆ
Linux
Îļþϵͳ¸øËùÓÐÕߣ¨owner£©¡¢ËùÓÐ×飨owning
group£©¡¢ÆäËü£¨other£©Ã¿Ò»ÀàÓû§·Ö±ð¶¨ÒåÁ˵ÄrwxȨÏÞ£¬ÇÒÊDZ˴˶ÀÁ¢µÄ¡£ËäÈ»LinuxÓÐÒ²LinuxÌØÊâÎļþȨÏ޵ŦÄÜÖ§³Ö£¬µ«ÒªÏñÔÚ
WindowsÏ


Ïà¹ØÎĵµ£º

LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö

×ܽ᣺zhy2111314
À´×Ô£ºLinuxSir.Org
ÕûÀí£º±±ÄÏÄϱ±
ÕªÒª£º ±¾ÎÄÊÇfind ÃüÁîµÄÏêϸ˵Ã÷£¬¿É¹óµÄÊÇÕë¶Ô²ÎÊý¾ÙÁ˺ܶàµÄʵÀý£¬´óÁ¿µÄÀýÖ¤£¬ÈóõѧÕ߸üΪÈÝÒ×Àí½â£»±¾ÎÄÊÇzhyflyÐÖÌùÔÚÂÛ̳ÖУ»ÎÒ¶Ô±¾ÎĽøÐÐÁËÔÙ´ÎÕûÀí£¬Îª·½±ã´ó¼ÒÔĶÁ£»
Ŀ¼
°æȨÉùÃ÷
Ç°ÑÔ£º¹ØÓÚfindÃüÁî
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ»°ãÐÎʽΪ ......

Linux, Unix, Windows Ö®¼äÇø±ð

LinuxºÍWindowsµÄÇø±ð
ºÍLinuxÒ»Ñù£¬WindowsϵÁÐÊÇÍêÈ«µÄ¶àÈÎÎñ²Ù×÷ϵͳ¡£ËüÃÇÖ§³ÖͬÑùµÄÓû§½Ó¿Ú¡¢ÍøÂçºÍ°²È«ÐÔ¡£µ«ÊÇ£¬LinuxºÍWindowsµÄÕæÕýÇø±ðÔÚÓÚ£¬LinuxÊÂʵÉÏÊÇUnixµÄÒ»ÖÖ°æ±¾£¬¶øÇÒÀ´×ÔUnixµÄ¹±Ï׷dz£¾Þ´ó¡£ÊÇʲôʹµÃUnixÈç´ËÖØÒª£¿²»½öÔÚÓÚ¶Ô¶àÓû§»úÆ÷À´Ëµ£¬UnixÊÇ×îÁ÷ÐеIJÙ×÷ϵͳ£¬¶øÇÒÔÚÓÚËüÊÇÃâ·ÑÈí¼þµÄ»ù´ ......

Redhat Linux NFSÅäÖÃ

Redhat Linux NFSÅäÖÃ
NFS¼ò½é£º
NFSÊÇÍøÂçÎļþϵͳµÄ¼òд£¨network file system£©£¬Ö÷ÒªÓÃÔÚlinux»òunix»·¾³ÖУ¬ÊÇÓÐsun¹«Ë¾¿ª·¢£¬²¢ÓÚ1984ÄêÍƳöµÄÒ»¸öRPC·þÎñϵͳ¡£
NFS¹¦ÄܽéÉÜ£º
Ëû¿ÉÒÔ½«¶à¸öĿ¼»òÕßµ¥¸öĿ¼½øÐз¢²¼£¬ÀýÈçÎÒÃÇÔÚÍø¿ÌϵͳµÄʱºò¿ÉÒÔÓÃNFSÀ´¹²Ïí¹âÅ̾µÏñ£¬NFSÊÇÒÔ·¢²¼Ä¿Â¼µÄ·½Ê½½«Îļþ½øÐз¢²¼£¬¶ ......

linuxÄÚºËÖÐ×î³£¼ûµÄËøÊÇ×ÔÐýËø

 linuxÄÚºËÖÐ×î³£¼ûµÄËøÊÇ×ÔÐýËø(spin lock)¡£×ÔÐýËø×î¶àÖ»Äܱ»Ò»¸ö¿ÉÖ´ÐÐÏ̳߳ÖÓС£Èç¹ûÒ»¸öÖ´ÐÐÏß³ÌÊÔͼ»ñµÃÒ»¸ö±»ÕùÓõÄ×ÔÐýËø£¬ÄÇô¸ÃÏ߳̾ͻáÒ»Ö±½øÐÐæѭ»·µÈ´ýËøÖØпÉÓá£ÒªÊÇËøδ±»ÕùÓã¬ÇëÇóËøµÄÖ´ÐÐÏ̱߳ãÄÜÁ¢¿ÌµÃµ½Ëü£¬¼ÌÐøÖ´ÐС£ÔÚÈÎÒâʱ¼ä£¬×ÔÐýËø¶¼¿ÉÒÔ·ÀÖ¹¶àÓÚÒ»¸öµÄÖ´ÐÐÏß³Ìͬʱ½øÈëÁÙ½çÇø¡£
  ......

LinuxÄںˣºslab/slob/slub

Ô­ÎÄÁ´½Ó:http://www.linuxdiyf.com/bbs/viewthread.php?tid=92084
 ºÜ¾ÃºÜ¾ÃÒÔÇ°£ºÒ»¸ö½Ð×öMark HemmentµÄ¸ç¶ùÃÇдÁËSlab¡£ÔÚ½ÓÏÂÀ´µÄһЩÄêÀÆäËûÈ˶ÔSlab½øÐÐÁËÍêÉÆ¡£Ò»Äê°ëÒÔÇ°£¬SLOBÎÊÊÀÁË¡£SLOBµÄÄ¿±êÊÇÕë¶ÔǶÈëʽϵͳµÄ£¬Ö÷ÒªÊÇÊÊÓÃÓÚÄÇЩÄÚ´æ·Ç³£ÓÐÏÞµÄϵͳ£¬±ÈÈç32MBÒÔϵÄÄڴ棬Ëü²»Ì«×¢ÖØlarge smpϵͳ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ