linuxÀï²é¿´ËùÓÐÓû§ºÍÓû§×é
1¡¢linuxÀï²é¿´ËùÓÐÓû§
£¨1£©ÔÚÖÕ¶ËÀï.ÆäʵֻÐèÒª²é¿´ /etc/passwdÎļþ¾ÍÐÐÁË.
£¨2£©¿´µÚÈý¸ö²ÎÊý:500ÒÔÉϵÄ,¾ÍÊǺóÃ潨µÄÓû§ÁË.ÆäËüÔòΪϵͳµÄÓû§.
»òÕßÓÃcat /etc/passwd |cut -f 1 -d :
2¡¢Óû§¹ÜÀíÃüÁî
useradd ×¢£ºÌí¼ÓÓû§
adduser ×¢£ºÌí¼ÓÓû§
passwd ×¢£ºÎªÓû§ÉèÖÃÃÜÂë
usermod ×¢£ºÐÞ¸ÄÓû§ÃüÁ¿ÉÒÔͨ¹ýusermod À´Ð޸ĵǼÃû¡¢Óû§µÄ¼ÒĿ¼µÈµÈ£»
pwcov ×¢£ºÍ¬²½Óû§´Ó/etc/passwd µ½/etc/shadow
pwck ×¢£ºpwckÊÇУÑéÓû§ÅäÖÃÎļþ/etc/passwd ºÍ/etc/shadow ÎļþÄÚÈÝÊÇ·ñºÏ·¨»òÍêÕû£»
pwunconv ×¢£ºÊÇpwcov µÄÁ¢ÄæÏò²Ù×÷£¬ÊÇ´Ó/etc/shadowºÍ /etc/passwd ´´½¨/etc/passwd £¬È»ºó»áɾ³ý /etc/shadow Îļþ£»
finger ×¢£º²é¿´Óû§ÐÅÏ¢¹¤¾ß
id ×¢£º²é¿´Óû§µÄUID¡¢GID¼°Ëù¹éÊôµÄÓû§×é
chfn ×¢£º¸ü¸ÄÓû§ÐÅÏ¢¹¤¾ß
su ×¢£ºÓû§Çл»¹¤¾ß
sudo ×¢£ºsudo ÊÇͨ¹ýÁíÒ»¸öÓû§À´Ö´ÐÐÃüÁexecute a command as another user£©£¬su ÊÇÓÃÀ´Çл»Óû§£¬È»ºóͨ¹ýÇл»µ½µÄÓû§À´Íê³ÉÏàÓ¦µÄÈÎÎñ£¬µ«sudo ÄܺóÃæÖ±½ÓÖ´ÐÐÃüÁ±ÈÈçsudo ²»ÐèÒªroot ÃÜÂë¾Í¿ÉÒÔÖ´ÐÐroot ¸³ÓëµÄÖ´ÐÐÖ»ÓÐroot²ÅÄÜÖ´ÐÐÏàÓ¦µÄÃüÁµ«µÃͨ¹ývisudo À´±à¼/etc/sudoersÀ´ÊµÏÖ£»
visudo ×¢£ºvisodo ÊDZ༠/etc/sudoers µÄÃüÁҲ¿ÉÒÔ²»ÓÃÕâ¸öÃüÁֱ½ÓÓÃvi À´±à¼ /etc/sudoers µÄЧ¹ûÊÇÒ»ÑùµÄ£»
sudoedit ×¢£ººÍsudo ¹¦Äܲ¶à£»
3¡¢¹ÜÀíÓû§×飨group£©µÄ¹¤¾ß»òÃüÁ
groupadd ×¢£ºÌí¼ÓÓû§×飻
groupdel ×¢£ºÉ¾³ýÓû§×飻
groupmod ×¢£ºÐÞ¸ÄÓû§×éÐÅÏ¢
groups ×¢£ºÏÔʾÓû§ËùÊôµÄÓû§×é
grpck
grpconv ×¢£ºÍ¨¹ý/etc/groupºÍ/etc/gshadow µÄÎļþÄÚÈÝÀ´Í¬²½»ò´´½¨/etc/gshadow £¬Èç¹û/etc/gshadow ²»´æÔÚÔò´´½¨£»
grpunconv ×¢£ºÍ¨¹ý/etc/group ºÍ/etc/gshadow ÎļþÄÚÈÝÀ´Í¬²½»ò´´½¨/etc/group £¬È»ºóɾ³ýgshadowÎļþ
Ê×ÏÈ´´½¨Óû§×é testºÍFTPµÄÖ÷Ŀ¼
groupadd test
mkdir /tmp/test
È»ºó´´½¨Óû§
useradd -G test –d /tmp/test –M usr1
×¢£ºG£ºÓû§ËùÔÚµÄ×é d£º±íʾ´´½¨Óû§µÄ×Ô¼ºÄ¿Â¼µÄλÖøøÓèÖ¸¶¨
M£º²»½¨Á¢Ä¬ÈϵÄ×Ô¼ÒĿ¼£¬Ò²¾ÍÊÇ˵ÔÚ/homeÏÂûÓÐ×Ô¼ºµÄĿ¼
useradd –G test –d /tmp/test –M usr2
½ÓןıäÎļþ¼ÐµÄÊôÖ÷ºÍȨÏÞ
chown usr1.test /tmp/test ----Õâ±íʾ°Ñ/tmp/testµÄÊôÖ÷¶¨Îªusr1
chmod 750 /tmp/test ----7±íʾwrx 5±íʾrx 0±íʾʲôȨÏÞ¶
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
¡¡¡¡Õâ¶Îʱ¼äÀÏÅöµ½ÓÐÈËÎʼ°¸÷¸öLinux°æ±¾µÄ±¾µØrootÃÜÂëÆƽⷽ·¨£¬ÎÒÕâÀï×Ô¼ºÒÔ¼°ÔÚÍøÂçÉÏËѼ¯ÁËЩ×ÊÁÏ£¬Ï£Íû¶Ô¿´µ½ÁËÕâÎÄÕ¶øÓÖÇ¡ºÃÓõõ½µÄ¼¼ÊõÈËÔ±Óеã°ïÖú£º
(Ò»)RedHat/CentOS/Fedora ϵͳÃÜÂëÆƽâ
¡¡¡¡1.ÔÚgrubÑ¡Ïî²Ëµ¥°´E½øÈë±à¼Ä£Ê½
¡¡¡¡2.±à¼kernel ÄÇÐÐ×îºó¼ÓÉÏ¿Õ¸ñS (»òÕß¿Õ¸ñSingle)
¡¡¡¡3.°´B£¬Æô¶¯µ ......
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define err(msg) perror(msg)
static void mkdirs(const char *dir)
{
char tmp[1024];
char *p;
&nbs ......
±¾ÎÄÖ÷Òª½éÉÜÈçºÎÓÃLinux×öÒ»¸ö¹¦ÄÜÍ걸µÄ·ÓÉÆ÷£¬ÕâÀォÖ÷Òª½éÉܾ²Ì¬Â·ÓÉÆ÷ºÍ¶¯Ì¬Â·ÓÉÆ÷µÄÅäÖ㬵«²»°üÀ¨IPαװ»òÕß˵¹«ÓÃÒ»¸öIPµØÖ··ÃÎÊÍâÃæÍøÂçµÈÎÊÌâ¡£ÆäÒѾ²»ÊôÓÚ±¾Ö÷ÌâÌÖÂ۵ķ¶Î§£¬Çë²Î¿¼ÆäËûÈç·À»ðǽµÄÅäÖõȵÄÄÚÈÝ¡£
LRP(Linux Router Project)ÒѾ³ÉÁ¢ÁËÓкü¸ÄêµÄʱ¼äÁË¡£Õâ¸ö¼Æ»®µÄÄ¿µÄÊÇÀûÓÃLinux²Ù×÷ϵͳ½«À ......
Index: flash.c
===================================================================
--- flash.c (revision 1804)
+++ flash.c (working copy)
@@ -26,6 +26,8 @@
#include "ebootnand.h"
#include "ll_nand.h"
#includ ......