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

Linux ÎļþÌØÊâȨÏÞ Sticky Bit

http://content.hccfl.edu/pollock/AUnix1/FilePermissions.htm 
http://en.wikipedia.org/wiki/Sticky_bit
http://www.anqn.com/os/linux/2009-03-01/a09108173.shtml
7.4.3  ÎļþÌØÊâȨÏÞ£ºSUID/SGID/Sticky Bit
Ç°ÃæÒ»Ö±Ìáµ½ÎļþµÄÖØҪȨÏÞ£¬¾ÍÊÇrwxÕâ3¸ö¶Á¡¢Ð´¡¢Ö´ÐеÄȨÏÞ¡£µ«ÊÇ£¬Ôõô /tmpȨÏÞÓÐЩÆæ¹Ö£¿»¹ÓУ¬ /usr/bin/passwdÒ²ÓÐЩÆæ¹Ö£¬Ôõô»ØÊÂÄØ£¿
[root@linux ~]# ls -ld /tmp ; ls -l /usr/bin/passwd
drwxrwxrwt  5 root root 4096 Jul 20 10:00 /tmp
-r-s--x--x  1 root root 18840 Mar  7 18:06 /usr/bin/passwd
²»ÊÇÖ»ÓÐrwxÂð£¿ÎªÊ²Ã´»¹ÓÐÆäËûµÄÌØÊâȨÏÞÄØ£¿²»Òªµ£ÐÄ£¬ÎÒÃÇÕâÀïÏȲ»Ì¸ÕâÁ½¸öȨÏÞ£¬Ö»ÊÇÏȽéÉÜһ϶øÒÑ¡£ÒòΪ±ØÐëÒªÓÐÕ˺ŵÄID¸ÅÄÒÔ¼°³ÌÐòµÄ½ø³Ì£¨process£©¸ÅÄîºó£¬²ÅÄܹ»½øÒ»²½Á˽âÕâЩÌØÊâȨÏÞËù±íʾµÄÒâÒå¡£
• Set UID
»á´´½¨sÓëtȨÏÞ£¬ÊÇΪÁËÈÃÒ»°ãÓû§ÔÚÖ´ÐÐijЩ³ÌÐòµÄʱºò£¬Äܹ»ÔÝʱ¾ßÓиóÌÐòÓµÓÐÕßµÄȨÏÞ¡£¾ÙÀýÀ´Ëµ£¬ÎÒÃÇÖªµÀ£¬Õ˺ÅÓëÃÜÂëµÄ´æ·ÅÎļþÆäʵÊÇ /etc/passwdÓë /etc/shadow¡£¶ø /etc/shadowÎļþµÄȨÏÞÊÇ“-r--------”¡£ËüµÄÓµÓÐÕßÊÇroot¡£ÔÚÕâ¸öȨÏÞÖУ¬½öÓÐroot¿ÉÒÔ“Ç¿ÖÆ”´æ´¢£¬ÆäËûÈËÊÇÁ¬¿´¶¼²»Ðеġ£
µ«ÊÇ£¬Æ«Æ«±ÊÕßʹÓÃdmtsaiÕâ¸öÒ»°ãÉí·ÝÓû§È¥¸üÐÂ×Ô¼ºµÄÃÜÂëʱ£¬Ê¹ÓõľÍÊÇ /usr/bin/passwd³ÌÐò£¬È´¿ÉÒÔ¸üÐÂ×Ô¼ºµÄÃÜÂë¡£Ò²¾ÍÊÇ˵£¬dmtsaiÕâ¸öÒ»°ãÉí·ÝÓû§¿ÉÒÔ´æÈ¡ /etc/shadowÃÜÂëÎļþ¡£ÕâÔõô¿ÉÄÜ£¿Ã÷Ã÷ /etc/shadow¾ÍÊÇûÓÐdmtsai¿É´æÈ¡µÄȨÏÞ¡£Õâ¾ÍÊÇÒòΪÓÐsȨÏ޵İïÖú¡£µ±sȨÏÞÔÚuserµÄxʱ£¬Ò²¾ÍÊÇÀàËÆ -r-s--x--x£¬³ÆΪSet UID£¬¼ò³ÆΪSUID£¬Õâ¸öUID±íʾUserµÄID£¬¶øUser±íʾÕâ¸ö³ÌÐò£¨/usr/bin/passwd£©µÄÓµÓÐÕߣ¨root£©¡£ÄÇô£¬ÎÒÃǾͿÉÒÔÖªµÀ£¬µ±dmtsaiÓû§Ö´ÐÐ /usr/bin/passwdʱ£¬Ëü¾Í»á“ÔÝʱ”µÃµ½ÎļþÓµÓÐÕßrootµÄȨÏÞ¡£
SUID½ö¿ÉÓÃÔÚ“¶þ½øÖÆÎļþ£¨binary file£©”£¬SUIDÒòΪÊdzÌÐòÔÚÖ´Ðйý³ÌÖÐÓµÓÐÎļþÓµÓÐÕßµÄȨÏÞ£¬Òò´Ë£¬Ëü½ö¿ÉÓÃÓÚ¶þ½øÖÆÎļþ£¬²»ÄÜÓÃÔÚÅú´¦ÀíÎļþ£¨shell½Å±¾£©ÉÏ¡£ÕâÊÇÒòΪ shell½Å±¾Ö»Êǽ«ºÜ¶à¶þ½øÖÆÖ´ÐÐÎļþµ÷½øÀ´Ö´ÐжøÒÑ¡£ËùÒÔSUIDµÄȨÏÞ²¿·Ö£¬»¹ÊÇÒª¿´shell½Å±¾µ÷ÓýøÀ´µÄ³ÌÐòÉèÖ㬶ø²»ÊÇshell½Å±¾±¾Éí¡£µ±È»£¬SUID¶ÔĿ¼ÊÇÎÞЧµÄ¡£ÕâµãÒªÌرð×¢Òâ¡£
• Set GID
½øÒ»²½¶øÑÔ£¬Èç¹ûsµÄȨÏÞÊÇÔÚÓû§×飬ÄÇô¾ÍÊÇSet GID£¬¼ò³ÆΪSGID¡£SGID¿É


Ïà¹ØÎĵµ£º

[ת] LinuxÏÂcoreÎļþµ÷ÊÔ·½·¨

ת×Ô£º http://xiezuoming.javaeye.com/blog/411915
ÔÚ³ÌÐò²»Ñ°³£Í˳öʱ£¬Äں˻áÔÚµ±Ç°¹¤×÷Ŀ¼ÏÂÉú³ÉÒ»¸öcoreÎļþ£¨ÊÇÒ»¸öÄÚ´æÓ³Ïñ£¬Í¬Ê±¼ÓÉϵ÷ÊÔÐÅÏ¢£©¡£Ê¹ÓÃgdbÀ´²é¿´coreÎļþ£¬¿ÉÒÔָʾ³öµ¼Ö³ÌÐò³ö´íµÄ´úÂëËùÔÚÎļþºÍÐÐÊý¡£
1.coreÎļþµÄÉú³É¿ª¹ØºÍ´óСÏÞÖÆ
---------------------------------
1£©Ê¹ÓÃulimit -cà ......

LinuxÈëÃűʼÇÆß

Îļþϵͳ
ÎļþϵͳµÄ²Ù×÷¹Ûµã
--²Ù×÷ϵͳÓÃÓÚÃ÷È·´ÅÅÌ·ÖÇøÉϵÄÎļþµÄ·½·¨ºÍÊý¾Ý½á¹¹£¬¼´ÎļþÔÚ´ÅÅÌÉϵÄ×éÖ¯·½·¨
--LinuxʹÓÃ"ÐéÄâÎļþϵͳ"²Ù×÷¸÷ÖÖÀàÐ͵ÄÎļþϵͳ
ÎļþϵͳµÄÓû§¹Ûµã
--LiunxϵÄËùÓÐÎļþºÍĿ¼£¬ÕâЩÎļþ¼°Ä¿Â¼¹¹ÒÔÒ»¸öÊ÷×´µÄ½á¹¹£¬¹¹³ÉÁËLinuxÖеÄÎļþϵͳ
--LinuxÎļþ±ê×¼£¨Linux File System St ......

ÖÆ×÷ARM Linux½»²æ±àÒë»·¾³

×ÏɫΪ¸üÕý
Ò»¡¢×¼±¸¹¤×÷
      
       Ê×ÏÈÐèҪһ̨ÔËÐÐLinux²Ù×÷ϵͳµÄPCÒÔÍê³ÉÎÒÃǵıàÒ빤×÷¡£
       Æä´ÎҪ׼±¸ÈçÏÂһЩԴÎļþ¡£
 
       1¡¢Ô´Îļþ×¼±¸
  &nbs ......

±àÒëlinuxÄÚºËÉú³ÉµÄsystem.mapÎļþÏê½â

system.mapÄÚÈݸñʽΪ£ºÏßÐÔµØÖ· ÀàÐÍ ·ûºÅ
¾ßÌåÄÚÈÝÈçÏ£º
00100000 A phys_startup_32
c0100000 T startup_32
c0100000 A _text                             ×¢:±í ......

linuxϽâ¾ömysqlµÄ×Ö·û±àÂëÎÊÌâ

http://hi.baidu.com/emersonm/blog/item/ee230a36ca566fd7a2cc2b4a.html
linuxϽâ¾ömysqlµÄ×Ö·û±àÂëÎÊÌâ
2009-10-06 21:03
mysqlµÄ×Ö·û±àÂëÊDZȷ±ËöµÄÊÂÇ飬ÎÒÓõÄfedora11ĬÈÏ°²×°mysql5.1
$mysql --user=root --password=²¼À­²¼À­²¼À­
½øÈëºó
mysql>show variables like 'character%';     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ