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

linuxÏ»ñÈ¡Óû§»ù±¾ÐÅÏ¢


ͨ¹ýcÓïÑÔ»ù´¡¿â´Ó»ñÈ¡linuxÓû§µÄ»ù±¾ÐÅÏ¢¡£
1¡¢Ê¹ÓÃstruct passwd¹ÜÀíÓû§ÐÅÏ¢¡£
struct passwd
{
  char *pw_name;                /* Óû§µÇ¼Ãû    */
  char *pw_passwd;              /* ÃÜÂë(¼ÓÃܺó)*/
  __uid_t pw_uid;               /* Óû§ID     */
  __gid_t pw_gid;               /* ×éID       */
  char *pw_gecos;               /* ÏêϸÓû§Ãû    */
  char *pw_dir;                 /* Óû§Ä¿Â¼       */
  char *pw_shell;               /* Shell³ÌÐòÃû */
};
 
2¡¢·ÖÎöÏಢµÄϵͳÎļþ/etc/passwd
1.     root:x:0:0:root:/root:/bin/bash   
2.     daemon:x:1:1:daemon:/usr/sbin:/bin/sh   
3.     bin:x:2:2:bin:/bin:/bin/sh  
ÔÚpasswdÎļþÖмǼµÄÊÇËùÓÐϵͳÓû§
ÿһÐбíʾһ¸öÍêÕûµÄstruct passwd½á¹¹£¬ÒÔ':'·Ö¸ô³öÿһÏîÖµ£¬Æä7Ïî¡£
3¡¢»ñȡϵͳµ±Ç°ÔËÐÐÓû§µÄ»ù±¾ÐÅÏ¢¡£
#include <grp.h>
#include <pwd.h>
#include <unistd.h>
#include <stdio.h>
 
int main ()
{
      uid_t uid;
      struct passwd *pw;
      struct group *grp;
      char **members;
     
      uid = getuid ();
      pw = getpwuid (uid);
     


Ïà¹ØÎĵµ£º

аæRHCE¿¼ÊÔÂú·Öͨ¹ýÕßÌṩµÄLinuxѧϰ±ê׼·Ïßͼ

 
 
RHCEֱͨ³µ www.taobaofun.com Ìṩ×îÈ«ÃæµÄRHCE¿¼ÊÔ×ÊÁÏ
 
 
1£® ÕÆÎÕÖÁÉÙ50¸öÒÔÉϵij£ÓÃÃüÁî¡£
 
2£® ÊìϤGnomeKDEµÈX-windows×ÀÃæ»·¾³²Ù×÷£¬×îºÃÊÇ×Ô¼º°²×°ÏÂϵͳ£¬Ê¹ÓÃx»·¾³ÉÏÏÂÍø¡£
 
3£® ÕÆÎÕ.tgz¡¢.rpmµÈÈí¼þ°üµÄ³£Óð²×°·½·¨£¬±¸·Ý»¹Ô­Ê±ºò»áÓõ½µÄ
 
4£® Ñ§Ï°Ì ......

linuxϽâѹrarÎļþ

      ×î½üÏÂÁËÒ»¸ölinux 0.1°æ±¾µÄÔ´´úÂ룬ÎļþÊÇrar¸ñʽ¡£
      ÒÔÏÂÊÇÔ­ÌûÄÚÈÝ£º
     °²×°£º
Èç¹ûÊÇÒÔtarballÐÎʽ°²×°°²×°£¬È¥rarÍøÕ¾ÏÂÔØÏàÓ¦°æ±¾µÄtarball¡£µØַΪhttp://www.rarlab.com/
ÒÔ3.8°æ±¾ÎªÀý£¬Èç¹ûÊÇi386µÄƽ̨,Ö´ÐÐÒÔÏÂÃüÁî ......

ÐÞ¸´Linux¡¢Windows˫ϵͳÖÐË𻵵ÄGrub

 ¡¡¡¡×î½ü×°¹ýµÄVista×°´íÁË£¬ÊǸöMSDN°æ£¬¸üйýºóÌáʾÎÒÒª¼¤»î¡£Ã»ÕÞ£¬Ö»ÄÜÖØ×°»»»ØÔ­À´µÄOEM
Ultimate°æ¡£Õâ¸öÖØ×°Ö®ºóµÄºó¹ûÎÒÊÇ¿¼ÂǹýµÄ£¬¾ÍÊÇGrubµÄ¶ªÊ§¡£¿ÉÎÒ²»Ïë¾ÍÕâôΪ´ËÖØÐÂ×°Ò»±éLinux¡£ÒªÖªµÀÎÒ¿ÉÊÇyumÁËÒ»Ìì²Å´Ó
Fedora7 yumµ½Fedora8µÄ£¬³¢ÊÔÒ»ÏÂÐÞ¸´Grub°É£¬¼¸Ìõ¼òµ¥µÄÃüÁî¾Í¸ã¶¨ÁË¡£
1¡¢·ÅÈëLinu ......

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ