“UbuntuHelp:AddUsersHowto”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/AddUsersHowto}} {{Languages|UbuntuHelp:AddUsersHowto}} == Information == When Ubuntu and/or Kubuntu are initially installed, a single user account...) |
小 |
||
第3行: | 第3行: | ||
== Information == | == Information == | ||
When Ubuntu and/or Kubuntu are initially installed, a single user account was created. It is possible to create additional user logins on your system. | When Ubuntu and/or Kubuntu are initially installed, a single user account was created. It is possible to create additional user logins on your system. | ||
− | |||
== Options == | == Options == | ||
There is more than one way to add a user, however this wiki page will briefly discuss the easiest and most common ways. The two ways shown are: | There is more than one way to add a user, however this wiki page will briefly discuss the easiest and most common ways. The two ways shown are: | ||
− | + | # Graphical | |
− | + | 2. Command-line - <code><nowiki>adduser</nowiki></code> | |
Graphical is the easiest solution, while the command-line offers the possibilities of multiple tasks at one time. | Graphical is the easiest solution, while the command-line offers the possibilities of multiple tasks at one time. | ||
− | |||
=== Graphical Ubuntu === | === Graphical Ubuntu === | ||
'''Location:''' ''System'' > ''Administration'' > ''Users and Groups'' | '''Location:''' ''System'' > ''Administration'' > ''Users and Groups'' | ||
− | |||
https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser1.png | https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser1.png | ||
− | |||
Press ''+ Add User'', this will open up the ''User Account Editor''. The minimum requirements are Username and password. For the Username, do '''not''' use spaces, and '''do''' use ASCII characters. On the ''User privileges'' tab, add privileges that the new user will have access to, such as ''use audio devices''. | Press ''+ Add User'', this will open up the ''User Account Editor''. The minimum requirements are Username and password. For the Username, do '''not''' use spaces, and '''do''' use ASCII characters. On the ''User privileges'' tab, add privileges that the new user will have access to, such as ''use audio devices''. | ||
− | |||
https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser2.png | https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser2.png | ||
− | |||
=== Graphical Kubuntu === | === Graphical Kubuntu === | ||
'''Location:''' ''Kmenu'' > ''System Settings'' > ''Users & Groups'' | '''Location:''' ''Kmenu'' > ''System Settings'' > ''Users & Groups'' | ||
− | |||
https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser3.png | https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser3.png | ||
− | |||
Press ''Administrator Mode'', this will pop up a password box. Enter your password. Press ''<u>N</u>ew...'', this will open up the ''User Account - KDE Control Module''. The minimum requirements are Username and password. For the Username, do '''not''' use spaces, and '''do''' use ASCII characters. On the ''Secondary Groups'' area, press ''<u>S</u>elect...'', and add priviledges that the new user will have access to. | Press ''Administrator Mode'', this will pop up a password box. Enter your password. Press ''<u>N</u>ew...'', this will open up the ''User Account - KDE Control Module''. The minimum requirements are Username and password. For the Username, do '''not''' use spaces, and '''do''' use ASCII characters. On the ''Secondary Groups'' area, press ''<u>S</u>elect...'', and add priviledges that the new user will have access to. | ||
− | |||
https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser4.png | https://help.ubuntu.com/community/AddUsersHowto?action=AttachFile&do=get&target=AddUser4.png | ||
− | |||
=== Command-line === | === Command-line === | ||
− | |||
To add a user you must use the <code><nowiki>sudo</nowiki></code> command (for an explanation of what that means, see the RootSudo page). Here are the commands: | To add a user you must use the <code><nowiki>sudo</nowiki></code> command (for an explanation of what that means, see the RootSudo page). Here are the commands: | ||
− | |||
To add a user. '''NOTE:''' do not use the useradd command. | To add a user. '''NOTE:''' do not use the useradd command. | ||
<pre><nowiki> | <pre><nowiki> | ||
# sudo adduser <username> | # sudo adduser <username> | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
To see the options for adding a user try the <code><nowiki>man</nowiki></code> command. | To see the options for adding a user try the <code><nowiki>man</nowiki></code> command. | ||
<pre><nowiki> | <pre><nowiki> | ||
# man adduser | # man adduser | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
You might also wish to create a new group for your users. | You might also wish to create a new group for your users. | ||
<pre><nowiki> | <pre><nowiki> | ||
# sudo addgroup <groupname> | # sudo addgroup <groupname> | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
To add a new user to a existing group you would do this: | To add a new user to a existing group you would do this: | ||
<pre><nowiki> | <pre><nowiki> | ||
# sudo adduser <username> audio | # sudo adduser <username> audio | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
To add an existing user to an existing group you can use the same command: | To add an existing user to an existing group you can use the same command: | ||
<pre><nowiki> | <pre><nowiki> |
2007年11月30日 (五) 15:13的版本
Information
When Ubuntu and/or Kubuntu are initially installed, a single user account was created. It is possible to create additional user logins on your system.
Options
There is more than one way to add a user, however this wiki page will briefly discuss the easiest and most common ways. The two ways shown are:
- Graphical
2. Command-line - adduser
Graphical is the easiest solution, while the command-line offers the possibilities of multiple tasks at one time.
Graphical Ubuntu
Location: System > Administration > Users and Groups Press + Add User, this will open up the User Account Editor. The minimum requirements are Username and password. For the Username, do not use spaces, and do use ASCII characters. On the User privileges tab, add privileges that the new user will have access to, such as use audio devices.
Graphical Kubuntu
Location: Kmenu > System Settings > Users & Groups Press Administrator Mode, this will pop up a password box. Enter your password. Press New..., this will open up the User Account - KDE Control Module. The minimum requirements are Username and password. For the Username, do not use spaces, and do use ASCII characters. On the Secondary Groups area, press Select..., and add priviledges that the new user will have access to.
Command-line
To add a user you must use the sudo
command (for an explanation of what that means, see the RootSudo page). Here are the commands:
To add a user. NOTE: do not use the useradd command.
# sudo adduser <username>
To see the options for adding a user try the man
command.
# man adduser
You might also wish to create a new group for your users.
# sudo addgroup <groupname>
To add a new user to a existing group you would do this:
# sudo adduser <username> audio
To add an existing user to an existing group you can use the same command:
# sudo adduser <username> <groupname>