linuxÏÂÇ¿ÖÆÐÂÓû§Ê״εǽÐÞ¸ÄÃÜÂë
Èç¹ûϵͳ¹ÜÀíԱϣÍûÌí¼ÓÒ»¸öÓû§ÒÔºó£¬ÈøÃÓû§µÚÒ»´ÎµÇ¼ÒÔºó×Ô¼ºÉèÖÃ×Ô¼ºµÄÃÜÂ룬ÄÇô¾ÍҪʹµÃÓû§µÄ³õʼÃÜÂë»òÕß¿ÕÃÜÂëÁ¢¿Ì¹ýÆÚ£¬Ç¿ÖÆÓû§µÚÒ»´ÎµÇ¼ºóÁ¢¿ÌÐÞ¸ÄÃÜÂë¡£
ΪÁËÇ¿ÖÆÓû§µÚÒ»´ÎµÇ¼ʱÉèÖÃÒ»¸öÐÂÃÜÂ룬Çë°´ÕÕÏÂÃæµÄָʾÀ´×ö£¬µ«ÊÇÐèÒªµÄ×¢ÒâµÄʱºòÈç¹ûÓû§ÊÇͨ¹ýSSHÔ¶³ÌµÇ¼½øÈ¥µÄ£¬ÄÇô¸Ã·½·¨ÊDz»ÄÜÉúЧµÄ¡£
1. Ëø¶¨Óû§ÃÜÂë - Èç¹ûÓû§²»´æÔÚ£¬ÓÃuseraddÌí¼ÓÓû§£¬µ«ÊDz»ÉèÖÃÃÜÂ룬ʹµÃ¸ÃÕʺÅÈÔÈ»´¦ÓÚËø¶¨×´Ì¬£¬Èç¹ûÓû§ÃÜÂëÒѾ¼¤»î£¬ÔòÓÃÏÂÃæÃüÁîËø¶¨£º
usermod -L username
2. Ç¿ÖÆÃÜÂëÁ¢¿Ì¹ýÆÚ£º
chage -d 0 username
¸ÃÃüÁîÉèÖÃÓû§ÉÏ´ÎÐÞ¸ÄÃÜÂëµÄʱ¼äΪ¼ÍԪʱ¼ä£¨1970Äê1ÔÂ1ÈÕ£©£¬ÕâÑù»áʹµÃ¸ÃÃüÁîÁ¢¿Ì¹ýÆÚ£¬¶ø²»ÂÛÃÜÂë¹ýÆÚ²ßÂÔµÄÉèÖá£
3. ¶ÔÕʺŽâËø - ÕâÀïÓÐÁ½¸ö·½·¨À´ÊµÏÖ£¬¹ÜÀíÔ±¿ÉÒÔÉèÖÃÒ»¸öÐÂÃÜÂë»òÕßÉèÖÿÕÃÜÂ룺
×¢Ò⣺²»ÒªÊ¹ÓÃpasswdÀ´ÉèÖÃÃÜÂ룬ÒòΪËü»áʹµÃ¸Õ²ÅÉèÖõÄʹÃÜÂëÁ¢¿Ì¹ýÆÚµÄÉèÖÃʧЧ¡£
ΪÁËÉèÖóõʼÃÜÂ룬ʹÓÃÏÂÃæ²½Ö裺
Æô¶¯Python:
# python
Python 2.3.4 (#1, Feb 6 2006, 10:38:46)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
ÔÚÌáʾ·û>>>ºóÊäÈëÏÂÃæÃüÁ
import crypt; print crypt.crypt("userpassword","username")
Êä³ö½«»áÀàËÆÊÇ£º
12CsGd8FRcMSM
ÊäÈë[Ctrl]+[D]Í˳öpython¡£
¿½±´¸Õ²ÅµÄÊä³öÃÜÂë½á¹û£¬12CsGd8FRcMSM£¬ÓÃÔÚÏÂÃæµÄÃüÁîÖУº
usermod -p "12CsGd8FRcMSM" username
µ±È»Ò²¿ÉÒÔ¸øÓû§¸øÒ»¸ö¿ÕÃÜÂ룺
usermod -p "" username
×¢£º ËäÈ»¿ÕÃÜÂëºÜ·½±ã£¬µ«ÊÇÓа²È«·çÏÕ¡£
È»ºóµÇ¼¸ÃÓû§£¬¾Í»áÌáʾÊäÈëÃÜÂë¡£
ÆäËû°ì·¨£º
ʹÓÃÏÂÃæ·½·¨Ò²¿ÉÒÔʵÏÖ£º
1. ʹÓÃuseraddÌí¼ÓÓû§ 2. ʹÓÃpasswdÉèÖÃÓû§ÃÜÂë 3. ʹÓÃusermod -LÀ´ËøÃÜÂë 4. Ç¿ÖÆÓû§ÕʺŹýÆÚchage -d 0 username 5. ½âËøÓû§ÕʺÅ
ÉÏÃæÁ÷³ÌµÄʾÀý£º
# useradd dan
# passwd dan
Changing password for user dan.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
# usermod -L dan
# chage -d 0 dan
# usermod -U dan
µ±È»Óû§danµÚÒ»´ÎµÇ¼£¬¾Í»áÌáʾÉèÖÃÃÜÂëÈçÏ£º
$ su dan
P
Ïà¹ØÎĵµ£º
1£®ÎļþµÄ´´½¨ºÍ¶Áд
¡¡¡¡µ±ÎÒÃÇÐèÒª´ò¿ªÒ»¸öÎļþ½øÐжÁд²Ù×÷µÄʱºò,ÎÒÃÇ¿ÉÒÔʹÓÃϵͳµ÷Óú¯Êýopen.ʹÓÃÍê³ÉÒÔºóÎÒÃǵ÷ÓÃÁíÍâÒ»¸öcloseº¯Êý½øÐйرղÙ×÷.
¡¡¡¡¡¡¡¡int open(const char *pathname,int flags);
¡¡¡¡¡¡¡¡int open(const char *pathname,int flags,mode_t mode);
¡¡¡¡¡¡¡¡int close(int fd);
......
Ò».°²×°
1.µ½ÍøÉÏÏÂÔØrar for linux
2.tar zxvf rarlinux-3.7.b1.tar.gz
3.make
¶þ.ʹÓÃ
1. rar e test.rar ½âѹRARµµ
2. rar a ѹËõºóµÄÎļþÃû.rar ´ýѹÎļþ»òĿ¼
Èý.ÎÊÌâ
ÈôÔËÐÐRARÌáʾÈçÏÂ:
rar: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by rar)
ÔòÓÃÀïÃæÌṩµÄ rar_stati ......
ÔÚlinuxµÄÇý¶¯³ÌÐòÖУ¬¶¼»áʹÓôóÁ¿µÄoutb¡¢outw¡¢inb¡¢inwµÈµÈºêÀ´·ÃÎÊÓ²¼þ»ò¼Ä´æÆ÷¡£ÕâЩºêµÄ¶¨Ò嶼ÔÚÏàÓ¦´¦ÀíÆ÷ÌåϵϵÄinclude\asmĿ¼ÏµÄio.hÖж¨Òå¡£×·¾¿ÏÂÈ¥£¬ÕâЩºê×îÖÕ¾ÍÊÇÒ»¸övolatile±äÁ¿µÄµÄ¸³Öµ£º
#define __arch_putb(v,a) (*(volatile unsi ......
ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡1.shutdown
¡¡¡¡shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½Ê½À´¹Ø±Õlinux£¬ÕâÊÇÊ®·ÖΣÏյġ£ÒòÎ ......