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

¡¾Linux×ÀÃæÓ¦Óá¿sudoµÄÓ÷¨¼°ÅäÖÃ

sudoÊÇlinuxϳ£ÓõÄÔÊÐíÆÕͨÓû§Ê¹Ó󬼶Óû§È¨Ï޵Ť¾ß¡£
ËüµÄÖ÷ÒªÅäÖÃÎļþÊÇsudoers,linuxÏÂͨ³£ÔÚ/etcĿ¼Ï£¬Èç¹ûÊÇsolaris£¬È±Ê¡²»×°sudoµÄ£¬±àÒë°²×°ºóͨ³£ÔÚ°²×°Ä¿Â¼µÄ etcĿ¼Ï£¬²»¹ý²»¹ÜsudoersÎļþÔÚÄĶù£¬sudo¶¼ÌṩÁËÒ»¸ö±à¼­¸ÃÎļþµÄÃüÁvisudoÀ´¶Ô¸ÃÎļþ½øÐÐÐ޸ġ£Ç¿ÁÒÍƼöʹÓøÃÃüÁîÐÞ¸Ä sudoers£¬ÒòΪËü»á°ïÄãУÑéÎļþÅäÖÃÊÇ·ñÕýÈ·£¬Èç¹û²»ÕýÈ·£¬ÔÚ±£´æÍ˳öʱ¾Í»áÌáʾÄãÄĶÎÅäÖóö´íµÄ¡£
ÑÔ¹éÕý´«£¬ÏÂÃæ½éÉÜÈçºÎÅäÖÃsudoers
Ê×ÏÈдsudoersµÄȱʡÅäÖãº
#############################################################
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root    ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL
# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL
# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
##################################################################
1. ×î¼òµ¥µÄÅäÖã¬ÈÃÆÕͨÓû§support¾ßÓÐrootµÄËùÓÐȨÏÞ
Ö´ÐÐvisudoÖ®ºó£¬¿ÉÒÔ¿´¼ûȱʡֻÓÐÒ»ÌõÅäÖãº
root    ALL=(ALL) ALL
ÄÇôÄã¾ÍÔÚϱßÔÙ¼ÓÒ»ÌõÅäÖãº
support ALL=(ALL) ALL
ÕâÑù£¬ÆÕͨÓû§support¾ÍÄܹ»Ö´ÐÐrootȨÏÞµÄËùÓÐÃüÁî
ÒÔsupportÓû§µÇ¼֮ºó£¬Ö´ÐУº
sudo su -
È»ºóÊäÈësupportÓû§×Ô¼ºµÄÃÜÂ룬¾Í¿ÉÒÔÇл»³ÉrootÓû§ÁË
2. ÈÃÆÕͨÓû§supportÖ»ÄÜÔÚij¼¸Ì¨·þÎñÆ÷ÉÏ£¬Ö´ÐÐrootÄÜÖ´ÐеÄijЩÃüÁî
Ê×ÏÈÐèÒªÅäÖÃһЩAlias£¬ÕâÑùÔÚÏÂÃæÅäÖÃȨÏÞʱ£¬»á·½±ãһЩ£¬²»ÓÃд´ó¶Î´ó¶ÎµÄÅäÖá£AliasÖ÷Òª·Ö³É4ÖÖ
Host_Alias
Cmnd_Alias
User_Alias
Runas_Alias
1) ÅäÖÃHost_Alias£º¾ÍÊÇÖ÷»úµÄÁбí
Host_Alias      HOST_FLAG = hostname1, h


Ïà¹ØÎĵµ£º

linuxĿ¼¼Ü¹¹


/       ¸ùĿ¼
/bin         ³£ÓõÄÃüÁî   binary   file   µÄÄ¿錄
/boot       ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ   (kernel)   ÔÚÄÚ
          /boot/grub/menu.lst       GR ......

linuxµÄÅäÖÃ

1.ÅäÍøÂç
<1># vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO×Ô¶¯Îªdhcp¾²Ì¬¸ÄΪstatic
¼´£ºBOOTPROTO=static
IPADDR=?
NETMASK=?
GATEWAY=?
ÎÒµÄÅäÖÃÈçÏ£º
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.10.19.234s
NETMASK=255.255.254.0
GETEWAY=10.10.18.254
ONBOOT=yes
TYPE=Ethernet
×¢£ ......

ǶÈëʽlinuxÉÕд(¶þ)—LinuxÄں˵IJüôºÍ±àÒë

Ò»¡¢Äں˵ĻñµÃ
¿ÉÒÔ´ÓÍøÉÏÏÂÔØÄÚºËÎļþ£¬http://www.kernel.org¡£Èç¹ûÊÇΪÁËÁ·Ï°£¬¾¡Á¿ÏÂÔØ£².4.xµÄÄںˡ£ÒòΪ2.6.xµÄÄں˱Ƚϴ󣬵±È»±àÒëÒ²ÐèÒª¸ü¶¼µÄʱ¼ä¡£
 
¶þ¡¢Äں˵ıàÒë
LinuxÄں˵ıàÒë²Ëµ¥Ö÷ÒªÓÐÈý¸ö°æ±¾£º
£±£©make config£º½øÈëÃüÁîÐУ¬¿ÉÒÔÒ»ÐÐÒ»ÐеÄÅäÖá£
£²£©make menuconfig£º¿ª·¢ÈËÔ±±È½ÏÊìÏ ......

LinuxÍø¹Üѧϰ±Ê¼Ç£¨12£©¹ØÓÚLinuxµÄÄں˰²È«

LinuxÄÚºËÊÇ×÷ΪMonolithic architecture (µ¥ÄÚºËÌåϵ½á¹¹) ¶øʵÏֵģ¬ÎªÁË»ñµÃ Microkernel architecture (΢ÄÚºËÌåϵ½á¹¹) ´øÀ´µÄ¿ÉÀ©Õ¹ÐԺͿÉά»¤ÐÔ£¬Linux ÒýÈëÁËÄ£¿é (module) »úÖÆ£¬(±È½Ï׼ȷµÄ˵·¨ÊÇ Loadable Kernel Module, ¿É×°ÔØÄÚºËÄ£¿é)£¬½å´ËÀ´±£Ö¤Äں˵Ľô´ÕÐÔºÍLinux±¾Éí¹ÌÓеĵ¥Ò»Ìåϵ½á¹¹µÄÓŵã—&# ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ