个人工具

“UbuntuHelp:AddUsersHowto/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
Information
 
(未显示2个用户的8个中间版本)
第1行: 第1行:
{{Translation|}}
+
{{Copyedit translation|from=https://help.ubuntu.com/community/AddUsersHowto}}
 
{{From|https://help.ubuntu.com/community/AddUsersHowto}}
 
{{From|https://help.ubuntu.com/community/AddUsersHowto}}
 
{{Translator|ekeng}}
 
{{Translator|ekeng}}
 
+
{{Verifier|}}
{{Languages|AddUsersHowto}}
+
{{Languages|UbuntuHelp:AddUsersHowto}}
  
 
== 信息 ==
 
== 信息 ==
当Ubuntu或Kubuntu刚刚安装完成,就会创建一个单独的用户.创建额外的帐户来登录您的系统也是可能的.
+
当Ubuntu或Kubuntu刚刚安装完成,就会创建一个单独的用户.创建额外的帐户来登录您的系统也是可行的.
  
== 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
+
* 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 Ubuntu ===
+
* 图形界面
'''Location:''' ''System'' > ''Administration'' > ''Users and Groups''
+
* 命令行 - <code><nowiki>adduser</nowiki></code>
 +
图形界面是最简单的,而命令行则用于产生多任务同时运行的可能性.
 +
 
 +
=== Ubuntu下图形界面 ===
 +
'''转到:''' "系统" > "系统管理" > "用户和组"(''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 charactersOn the ''User privileges'' tab, add privileges that the new user will have access to, such as ''use audio devices''.
+
按  ''+ 添加用户(Add User)'' , 会打开 ''新建用户帐户(User Account Editor)'' . 至少要用户名和密码. 用户名'''不能'''使用空格, '''不能'''使用 ASCII码''用户权限(User privileges)'' 标签中, 添加新用户可访问的权限, 例如 ''使用音频设备(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 ===
+
=== Kubuntu 下图形界面===
'''Location:''' ''Kmenu'' > ''System Settings'' > ''Users & Groups''
+
'''转到:''' K菜单 > 系统设定 > 用户管理(''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.
+
''管理员模式(Administrator Mode)'', 会弹出一个密码框.输入您的密码.按 新建...(''<u>N</u>ew...''), 会打开 ''用户帐户 -KDE控制模块(User Account - KDE Control Module)''. 至少要有用户名和密码. 用户名'''不能'''使用空格, '''不能'''使用 ASCII码.. 在  ''次要组Secondary Groups'' 区域, 按  选择...(''<u>S</u>elect...''), 然后添加新用户可访问的权限
  
 
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 ===
+
=== 命令行 ===
 +
添加一个用户您必须使用<code><nowiki>sudo</nowiki></code>命令(for an explanation of what that means, see the RootSudo page). 以下是代码:
  
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:
+
添加一个用户. '''注意:''' 不要使用 useradd 命令.
 
+
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.
+
查看添加用户的选项可用 <code><nowiki>man</nowiki></code> 命令.
 
<pre><nowiki>
 
<pre><nowiki>
 
# man adduser
 
# man adduser
 
</nowiki></pre>
 
</nowiki></pre>
  
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:
+
在已存在的组中添加新用户您应该:
 
<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:
+
把一个已存在的用户添加到一个已存在的组中您可以使用相同的命令:
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
 
# sudo adduser <username> <groupname>
 
# sudo adduser <username> <groupname>

2007年6月26日 (二) 22:37的最新版本


信息

当Ubuntu或Kubuntu刚刚安装完成,就会创建一个单独的用户.创建额外的帐户来登录您的系统也是可行的.

选项

添加一个用户有多种方法,然而,本维基只是简要论述最简单最常见的方法.以下是两种方法:

  • 图形界面
  • 命令行 - adduser

图形界面是最简单的,而命令行则用于产生多任务同时运行的可能性.

Ubuntu下图形界面

转到: "系统" > "系统管理" > "用户和组"(System > Administration > Users and Groups)


AddUsersHowto?action=AttachFile&do=get&target=AddUser1.png

+ 添加用户(Add User) , 会打开 新建用户帐户(User Account Editor) . 至少要用户名和密码. 用户名不能使用空格, 也不能使用 ASCII码. 在 用户权限(User privileges) 标签中, 添加新用户可访问的权限, 例如 使用音频设备(use audio devices).

AddUsersHowto?action=AttachFile&do=get&target=AddUser2.png

Kubuntu 下图形界面

转到: K菜单 > 系统设定 > 用户管理(Kmenu > System Settings > Users & Groups)

AddUsersHowto?action=AttachFile&do=get&target=AddUser3.png

管理员模式(Administrator Mode), 会弹出一个密码框.输入您的密码.按 新建...(New...), 会打开 用户帐户 -KDE控制模块(User Account - KDE Control Module). 至少要有用户名和密码. 用户名不能使用空格, 也不能使用 ASCII码.. 在 次要组Secondary Groups 区域, 按 选择...(Select...), 然后添加新用户可访问的权限

AddUsersHowto?action=AttachFile&do=get&target=AddUser4.png

命令行

添加一个用户您必须使用sudo命令(for an explanation of what that means, see the RootSudo page). 以下是代码:

添加一个用户. 注意: 不要使用 useradd 命令.

# sudo adduser <username>

查看添加用户的选项可用 man 命令.

# man adduser

您可能也需要为您的用户创建一个新组.

# sudo addgroup <groupname>

在已存在的组中添加新用户您应该:

# sudo adduser <username> audio

把一个已存在的用户添加到一个已存在的组中您可以使用相同的命令:

# sudo adduser <username> <groupname>