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

linuxµÄÎļþºÍĿ¼

chmod £»ÐÞ¸ÄĿ¼ȨÏÞ
eg£ºchmod o-t /tmp
touch:´´½¨ÐÂÎļþ
rm -rf:ɾ³ýÎļþ
set gid ¶ÔĿ¼µÄ×÷ÓÃ
1£ºÄ¬ÈÏÇé¿öÏ£¬Óû§½¨Á¢µÄÎļþÊôÓÚÓû§µ±Ç°ËùÔÚµÄ×é
2£ºÄ¿Â¼ÉÏÉèÖÃÁËsetgid£¬±íʾÔÚ´ËĿ¼ÖУ¬ÈκÎÈ˽¨Á¢µÄÎļþ£¬¶¼»áÊôÓÚĿ¼ËùÊôµÄ×é¡£
rm -rf test  //ɾ³ý֮ǰµÄtestĿ¼
mkdir test // ÔÚµ±Ç°Ä¿Â¼´´½¨Ò»¸ötestĿ¼
ls -ld test //²é¿´Õâ¸öĿ¼µÄ³¤¸ñʽÃ÷ϸ
chgrp xiaowang test //¸ü¸ÄtestĿ¼ÎļþµÄËùÊô×éΪxiaowang
ls -ld test //²é¿´±ä»»Ö®ºóµÄ½á¹¹·¢ÏÖĿ¼ÎļþµÄËùÊô×é±äΪxiaowang
cd test  //Çл»µ½testĿ¼
touch test.txt  //ÔÚ¸ÃĿ¼ÏÈ´´½¨Ò»¸öÎļþ
ls -l  //²é¿´¸ÃÎļþµÄ³¤¸ñʽÃ÷ϸ£¬·¢ÏÖ¸ÃÎļþµÄËùÊô×é²¢·Çxiaowang£¬¶øÊÇroot
ÕâÒ»Àý×Ó˵Ã÷ÁËĬÈÏÇé¿öÏ£¬rootÓû§½¨Á¢µÄÎļþÊôÓÚÓû§rootµ±Ç°ËùÔÚµÄ×é
mkdir test1
ls -ld test1
chmod 745 test1
ls -ld test1
Õâ¸öÀý×ÓÓÃÀ´ËµÃ÷ÑÝʾСдsºÍ´óдS
ðÏÕλ¶ÔĿ¼×÷ÓÃ
1£ºÄ¬ÈÏÇé¿öÏ£¬Èç¹ûÒ»¸öĿ¼ÉÏÓÐWºÍXȨÏÞ£¬ÔòÈκÎÈË¿ÉÒÔÔÚ´ËĿ¼Öн¨Á¢Óëɾ³ýÎļþ
2£ºÒ»µ©Ä¿Â¼ÉÏÉèÖÃÁËðÏÕ룬Ôò±íʾÔÚ´ËĿ¼ÖУ¬Ö»ÓÐÎļþµÄÓµÓÐÕߣ¬Ä¿Â¼µÄÓµÓÐÕßÓëϵͳ¹ÜÀíÔ±¿ÉÒÔɾ³ýÎļþ
Ç¿ÖÆÎ»¶ÔĿ¼µÄ×÷ÓÃ
1£ºÔÚ¿ÉÖ´ÐÐÎļþÉÏ£¬Óû§¿ÉÒÔÌí¼Óset uidºÍset gid¡£
2£ºÄ¬ÈÏÇé¿öÏ£¬Óû§Ö´ÐÐÒ»¸öÖ¸Á»áÒÔ¸ÃÓû§µÄÉí·ÝÀ´ÔËÐнø³Ì¡£
3£ºÖ¸ÁîÎļþÉϵÄÇ¿ÖÆÎ»£¬¿ÉÒÔÈÃÓû§Ö´ÐеÄÖ¸ÁÒÔÖ¸ÁîÎļþµÄÓµÓÐÕß»òËùÊô×éµÄÉí·ÝÔËÐнø³Ì¡£
ÉèÖÃÇ¿ÖÆÎ»ºÍðÏÕλ
·½·¨Ò»£ºÓû§¿ÉÒÔÓÃchmodÖ¸ÁîÀ´ÎªÎļþÉèÖÃÇ¿ÖÆÎ»ºÍðÏÕλ
 set uid:  chmod u+s ÎļþÃû          
 set gid:  chmod g+s ÎļþÃû
sticky :    chmod o+t ÎļþÃû
·½·¨¶þ£º
  4(set uid)    Ö»ÄÜÔÚÎļþÉÏÉ趨£¬²»ÄÜÔÙĿ¼ÉÏÉ趨
  2(set gid)   ¶¼¿ÉÒÔ
  1(sticky)     Ö»ÄÜÔÚĿ¼ÉÏÉ趨£¬²»ÄÜÔÙÎļþÉÏÉ趨
chmod 4777  test.txt
ÉèÖÃÎļþȨÏÞ
 Ó²Á´½ÓºÍÈíÁ´½Ó
Àý£º¸øÄ¿Â¼½¨Á¢ÈíÁ´½Ó£¬In-s
cd /home   //Çл»µ½homeĿ¼
ls  //²é¿´homeĿ¼ÏµÄÎļþ
touch test.txt  //ÔÚhomeĿ¼ÏÂн¨Ò»¸ötest.txtµÄÎļþ
cd~   //Çл»µ½Ö÷Ŀ¼
In/home/test.txt  tom.txt   //¸øhomeĿ¼ÏµÄtest.tx


Ïà¹ØÎĵµ£º

linuxºÍUnix

Ò»¡¢Àí½âLinuxµÄµ¥Óû§¶àÈÎÎñ£¬¶àÓû§¶àÈÎÎñ¸ÅÄ
Linux ÊÇÒ»¸ö¶àÓû§¡¢¶àÈÎÎñµÄ²Ù×÷ϵͳ£»ÎÒÃÇÓ¦¸ÃÁ˽ⵥÓû§¶àÈÎÎñºÍ¶àÓû§¶àÈÎÎñµÄ¸ÅÄ
1¡¢Linux µÄµ¥Óû§¶àÈÎÎñ£»
µ¥Óû§¶àÈÎÎñ£»±ÈÈçÎÒÃÇÒÔbeinan µÇ¼ϵͳ£¬½øÈëϵͳºó£¬ÎÒÒª´ò¿ªgedit À´Ð´Îĵµ£¬µ«ÔÚдÎĵµµÄ¹ý³ÌÖУ¬ÎҸоõÉÙµãÒôÀÖ£¬ËùÒÔÓÖ´ò¿ªxmms À´µãÒôÀÖ£» ......

LAMP(Linux+Apache+Mysql+PHP)²¿ÊðÈÕÖ¾

±¾ÎļǼһϱ¾È˰²×°LAMPµÄÈ«¹ý³Ì
±¾ÈËʹÓõÄLinuxΪRedHat Enterprise 5 X64
µÚÒ»²½:°²×°Mysql
MysqlµÄ°²×°±È½Ï¼òµ¥£¬ÎªÁ˱ÜÃâ³öÏÖÎļþÕÒ²»µ½µÄÇé¿ö£¬ÎÒÒÀ´ÎÏÂÔØ°²×°ÁËÒÔÏÂ4¸öRPM°ü
MySQL-server-community-5.1.46-1.rhel5.x86_64.rpm
MySQL-client-community-5.1.46-1.rhel5.x86_64.rpm 
MySQL-devel-commu ......

Linux¡¡Æô¶¯Ïê½â

»úÆ÷¼ÓµçÆô¶¯ºó,BIOS¿ªÊ¼¼ì²â²ÎÊý,ÈçÄÚ´æµÄ´óС,ÈÕÆÚºÍʱ¼ä,´ÅÅÌ
É豸ÒÔ¼°ÕâЩ´ÅÅÌÉ豸ÓÃÀ´Òýµ¼µÄ˳Ðò,ͨ³£Çé¿öÏ£¬BIOS¶¼ÊDZ»ÅäÖóÉÊ×Ïȼì²é
ÈíÇý»òÕß¹âÇý£¨»òÁ½Õß¶¼¼ì²é£©£¬È»ºóÔÙ³¢ÊÔ´ÓÓ²ÅÌÒýµ¼¡£Èç¹ûÔÚÕâЩ¿ÉÒÆ¶¯µÄÉè
±¸ÖУ¬Ã»ÓÐÕÒµ½¿ÉÒýµ¼µÄ½éÖÊ£¬ÄÇôBIOSͨ³£ÊÇתÏòµÚÒ»¿éÓ²ÅÌ×î³õµÄ¼¸¸öÉÈÇø£¬
ѰÕÒÓÃÓÚ×°ÔØ²Ù×÷Ï ......

VMwareÉÏCentOS LinuxÍøÂçÅäÖÃ

½«ÁªÍø·½Ê½ÉèÖÃΪNAT
µÚÒ»²½£º
      cdµ½/etc/sysconfig/network-scriptsϵµÄifcfg-eth0
µÚ¶þ²½£º
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
#BOOTPROTO=static
BOOTPROTO=none
BROADCAST=192.168.174.255
HWADDR=00:0C:29:F2:BB:A9
IPADDR=192.168.174.11 ......

ÈçºÎ¹²ÏílinuxÓëxpµÄÎļþ¼Ð

step1£º
              ÔÚubuntuÀïÃæÓÒ»÷Òª¹²ÏíµÄÎļþ¼Ð£¬»áÌáʾ°²×°Èí¼þ£¬Ñ¡Ôñ°²×°¼´¿É£»
step2£º
              ʵÏÖxpÄäÃû·ÃÎÊUbuntu¹²ÏíÎļþ¼Ð£¬ ÔòÖ»ÐèÐÞ¸Ä/etc/samba/smb.co ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ