(警告 : 这里以 slackware 为主,red hat 需要更新)
这个部分假设您在您的 linux 系统上使用 slackware shadow password 套件。如果不是的话,您应该
考虑去做,因为它可以强化安全。shadow 套件非常容易安装,而且会自动转换您的非 shadow 密码档格
式成为新的 shadow 格式。
要建立使用者帐号有两种方法。第一种是真正地建立帐号本身,第二种是用化名提供他们的 e-mail 位址
(在我工作的地方,我们定为“firstname.lastname@our.domain.name”)
要建立帐号时,选择您想分配给用户的使用者名称。使用者名称通常是 8 位元长,不论如何,您应该选
择他们的 first name 或者 last name,以及当帐号已经存在时要加上的前置元 (adduser script 将会
侦测并且防止您加入重的帐号)。
您会被提示要加入其他资料: 使用者全名,使用者群组 (通常是预设值),一个使用者 id # (自动分配 ),
home 目录 (自动分配),一个使用者 shell,, 一些密码期限值,以及最後想要的密码 (不会出现在萤幕上 ;
因为安全因素您应该要求使用者选择密码 6 到 8 个字元长)。
请注意所有键入的资料都是小写,除了是使用者键入全名 (例如. joe smith) 及密码。大小写是不同的,
所以要告知使用者当键入使用者姓名及密码时必须使用相同大小写。
这里是一个加入一个名叫 joe smith 使用者帐号的例:
mail:~# /sbin/adduser
user to add (^c to quit): smith
that name is in use, choose another.
user to add (^c to quit): smithj
editing information for new user [smithj]
full name: joe smith
gid [100]:
checking for an available uid after 500
first unused uid is 859
uid [859]:
home directory [/home/smithj]:
shell [/bin/bash]:
min. password change days [0]:
max. password change days [30]: 90
password warning days [15]:
days after password expiry for account locking [10]: 0
password [smithj]: fl1539
retype password: fl1539
sorry, they do not match.
password:> fl1539
retype password: fl1539
information for new user [smithj]:
name: joe smith
home directory: /home/smithj
shell: /bin/bash
password:
uid: 859 gid: 100
min pass: 0 max pass: 99999
warn pass: 7 lock account: 0
public home directory: no
type 'y' if this is correct, 'q' to cancel and quit the program,
or the letter of the item you wish to change: y
下一个步骤是建立使用者 e-mail 帐号化名。 这让使用者可以使用帐号名称或他们的全名
(first.last 的组合)作为他们的 e-mail 位址,使得外界的人第一次和他们接触时“较容易” 猜测他们
的 e-mail 位址。
要加入 e-mail 化名时,依下述编辑 ``/etc/aliases'' 档:
mail# pico -w /etc/aliases
在档案底部加入新的化名,化名的格式是:
first.lastname:username
您应该询问使用者他们的偏好 (例如. joseph.smith 或 joe.smith)。对我们的新使用者 joe smith,
加入的一行应该像这样子:
joe.smith:smith
当完成加入化名後,按
在此时使用者帐号已经建好并且准备使用。 提醒使用者使用小写作为使用者名称及密码,以及它们的
e-mail 位址将是什麽样子 (例如. ``joe.smith@mail.mydomain.name'')是个好主意。
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器