linuxÓû§¹ÜÀíÏà¹Ø֪ʶ
/etc/passwd ×¢£ºÓû§£¨user£©µÄÅäÖÃÎļþ£»
/etc/shadow ×¢£ºÓû§£¨user£©Ó°×Ó¿ÚÁîÎļþ£»
/etc/group ×¢£ºÓû§×飨group£©ÅäÖÃÎļþ£»
/etc/gshadow ×¢£ºÓû§×飨group£©µÄÓ°×ÓÎļþ£»
¹ÜÀíÓû§£¨user£©Ïà¹ØÃüÁî
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 ¹¦Äܲ¶à£»
¹ÜÀíÓû§×飨group£©Ïà¹ØÃüÁî
groupadd ×¢£ºÌí¼ÓÓû§×飻
groupdel ×¢£ºÉ¾³ýÓû§×飻
groupmod ×¢£ºÐÞ¸ÄÓû§×éÐÅÏ¢
groups ×¢£ºÏÔʾÓû§ËùÊôµÄÓû§×é
grpck
grpconv ×¢£ºÍ¨¹ý/etc/groupºÍ/etc/gshadow µÄÎļþÄÚÈÝÀ´Í¬²½»ò´´½¨/etc/gshadow £¬Èç¹û/etc/gshadow ²»´æÔÚÔò´´½¨£»
grpunconv ×¢£ºÍ¨¹ý/etc/group ºÍ/etc/gshadow ÎļþÄÚÈÝÀ´Í¬²½»ò´´½¨/etc/group £¬È»ºóɾ³ýgshadowÎļþ£»
µ±ÎÒÃÇÓÃÃüÁî´´½¨Ò»¸öÓû§Ê±£¬ÏµÍ³»á×Ô¶¯°Ñ/etc/skel ϵĶ«Î÷·Åµ½Óû§µÄhomeĿ¼ÏÂÎÒÃÇÒ²¿ÉÒÔÊÖ¶¯´´½¨Ò»¸öÓû§£¬
È»ºó°Ñ/etc/skel ÏÂÃæµÄÎļþÈ«²¿¿¼µ½Óû§µÄhomeĿ¼£¬È»ºóÉ趨·ÃÎÊȨÏÞ¡£
/etc/login.defsÏÂÊÇÓû§µÄ´´½¨¹æÔò£¬±ÈÈç´´½¨Óû§Ê±£¬ÊÇ·ñÐèÒª¼ÒĿ¼£¬UIDºÍGIDµÄ·¶Î§£»Óû§µÄÆÚÏ޵ȵÈ
/etc/default/useraddͨ¹ýuseradd Ìí¼ÓÓû§Ê±µÄ¹æÔòÎļþ
GROU
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
±ÈÈçÒª°Ñ/etc/apache/binĿ¼Ìí¼Óµ½PATHÖÐ
1.#PATH=$PATH:/etc/apache/bin
ʹÓÃÕâÖÖ·½·¨,ÿµ±µÇ³öPATH¾Í»á»Ö¸´
2.#vi /etc/profile
ÔÚÊʵ±Î»ÖÃÌí¼ÓPATH=$PATH:/etc/apache/bin
ÕâÖÖ·½·¨×îºÃ,³ý·ÇÄãÇ¿ÖÆÊÖ¶¯ÐÞ¸ÄPATHµÄÖµ,·ñÔò½«²»»á±»¸Ä±ä
3.#vi ~/.bash_profile
ÐÞ¸ÄPATHÐÐ,°Ñ/etc/apach ......
´ó¼Ò¶¼ÖªµÀÔÚUnix/LinuxÖÐÓиömanÃüÁ¿ÉÒÔ²éѯ³£ÓõÄÃüÁº¯Êý¡£¿ÉÊǶÔÓÚÎÒÃÇÕâÑùÖ»ÖªµÀÓÃ"man º¯ÊýÃû"À´²éѯµÄÈËÀ´Ëµ£¬»áÓöµ½ºÜ¶àÎÊÌ⣬±ÈÈ磺
man read£¬ÎÒÏë¿´µÄÊÇANSI CÖÐstdioµÄreadº¯ÊýÔÐͺÍ˵Ã÷£¬Ã»Ïëµ½³öÀ´µÄÈ·ÊÇBASHÃüÁîµÄ˵Ã÷£¬ÕâÊÇÔõô»ØÊ ......
×î½üÐéÄâ»ú×°Á˸öRedHat Enterprise Server 5£¬ÓùßÁËUbuntu£¬¾õµÃ²»Ì«ÊÊÓ¦¡£
µ±ÔÚÖÕ¶ËÖ´ÐÐsudoÃüÁîʱ£¬ÏµÍ³Ìáʾ“cuser is not in the sudoers file”£º
$ sudo ls
Password:
cuser is not in the sudoers file. This incident will be reported.
Æäʵ¾ÍÊÇûÓÐȨÏÞ½øÐÐsudo£¬½â¾ö·½·¨ÈçÏ£¨ÕâÀï¼ÙÉèÓ ......