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

Howto: Linux Add User To Group (tips)

Q. How can I add a user to a group under Linux operating system?
A. You can use useradd or usermod commands to add a user to a group. useradd command creates a new user or update default new user information. usermod command modifies a user account i.e. it is useful to add user to existing group. There are two types of group. First is primary user group and other is secondary group. All user account related information is stored in /etc/passwd, /etc/shadow and /etc/group files to store user information.
useradd example - Add a new user to secondary group
Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:
useradd -G {group-name} username
Create a new user called vivek and add it to group called developers. First login as a root user (make sure group developers exists), enter:
# grep developers /etc/group
Output:
developers:x:1124:
If you do not see any output then you need to add group developers using groupadd command:
# groupadd developers
Next, add a user called vivek to group developers:
# useradd -G developers vivek
Setup password for user vivek:
# passwd vivek
Ensure that user added properly to group developers:
# id vivek
Output:
uid=1122(vivek) gid=1125(vivek) groups=1125(vivek),1124(developers)
Please note that capital G (-G) option add user to a list of supplementary groups. Each group is separated from the next by a comma, with no intervening whitespace. For example, add user jerry to groups admins, ftp, www, and developers, enter:
# useradd -G admins,ftp,www,developers jerry
useradd example - Add a new user to primary group
To add a user tony to group developers use following command:
# useradd -g developers tony
# id tony
uid=1123(tony) gid=1124(developers) groups=1124(developers)
Please note that small -g option add user to initial login group (primary group). The group name must exist. A group numb


Ïà¹ØÎĵµ£º

ÔÚlinuxÏÂʵÏÖweb qqµÄ×ÀÃ滯


´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ­°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......

Æß´óʵÓÃÃüÁîÐй¤¾ß ÍæתLinuxÍøÂçÅäÖÃ

¡¾51CTO¾«Ñ¡ÒëÎÄ¡¿ËäÈ»ÏÖÔÚ´ó¶àÊýLinux·¢Ðаæ϶¼ÓÐGUIµÄÍøÂç¹ÜÀíÅäÖ㬲»¹ýÊìϤÃüÁîÐй¤¾ß»¹ÊÇ´óÓÐÖúÒæµÄ¡£ÏÂÃæÎÒÃÇÀ´¿´¿´ÕâЩÁ÷ÐÐLinux·¢ÐаæÏÂÃæµÄ³£ÓÃÃüÁî¡£¶ÔÁË£¬Èç¹ûÄãÏëÒªÁ˽â¸Ã¹¤¾ßºÍÑ¡ÏîµÄÏêϸÇé¿ö£¬¿ÉÒÔÊäÈëmanÔÙÊäÈëÕâ¸ö¹¤¾ßµÄÃû×Ö·ÃÎÊÆämanÒ³Ãæ¡£
ÏÖÔھʹò¿ªÄãµÄterminal³¢ÊÔһϰɣ¡
ÓÃÓÚ»ù±¾½Ó¿ÚÓëIPÅäÖÃµÄ ......

2440ƽ̨ÏÂlinux´®¿Ú¿ª·¢Ô´ÂëʾÀý(2440Ë«´®¿Ú¼äͨÐÅ)

/***************************************************************************** ³ÌÐò˵Ã÷£ºÊ¾Àý³ÌÐòÑÝʾÁË2440ƽ̨ÏÂlinux´®¿ÚÓ¦Óÿª·¢£¬¿ÉʵÏÖ2440´®¿Ú2Óë´®¿Ú3µÄͨѶ*** Ó²¼þÉèÖ㺽«2440°å×ÓÉϵĴ®¿Ú2¡¢3TXD¡¢RXD½»²æ¶Ì½Ó*** ±àÒëÔËÐУºÔÚËÞÖ÷»úÉϱàÒë³ÌÐòÔ´Â룬´ò¿ª³¬¼¶Öնˣ¨¿ÉÓë2440½øÐÐÃüÁî½»»¥£©£¬*** &nb ......

Linux ³ÌÐò°²×°ÓëжÔØ

ÂÜÀòÊÀ½ç ¸úÄúÒ»Æð¿´ÊÀ½ç http://lolier.info/ A£ºRPM°ü£¬ÕâÖÖÈí¼þ°ü¾ÍÏñwindowsµÄEXE°²×°ÎļþÒ»Ñù£¬¸÷ÖÖÎļþÒѾ­±àÒëºÃ£¬²¢´òÁË°ü£¬ÄĸöÎļþ¸Ã·Åµ½ÄĸöÎļþ¼Ð£¬¶¼Ö¸¶¨ºÃÁË£¬°²×°·Ç³£·½±ã£¬ÔÚͼÐνçÃæÀïÄãÖ»ÐèҪ˫»÷¾ÍÄÜ×Ô¶¯°²×°¡£ ==ÈçºÎжÔØ: 1¡¢´ò¿ªÒ»¸öSHELLÖÕ¶Ë 2¡¢ÒòΪLINUXϵÄÈí¼þÃû¶¼°üÀ¨°æ±¾ºÅ£¬ËùÒÔжÔØÇ°×îºÃÏÈ ......

linuxÏÂÌí¼Ó·Óɵķ½·¨

linuxÏÂÌí¼Ó·Óɵķ½·¨£º
Ò»£ºÊ¹Óà route ÃüÁîÌí¼Ó
ʹÓÃroute ÃüÁîÌí¼ÓµÄ·ÓÉ£¬»úÆ÷ÖØÆô»òÕßÍø¿¨ÖØÆôºó·ÓɾÍʧЧÁË£¬·½·¨£º
//Ìí¼Óµ½Ö÷»úµÄ·ÓÉ
# route add –host 192.168.168.110 dev eth0
# route add –host 192.168.168.119 gw 192.168.168.1
//Ìí¼Óµ½ÍøÂçµÄ·ÓÉ
# route add –net IP netma ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ