使用 util-linux 软件包所提供的标准命令可以添加/删除用户及组群:
useradd, userdel,
groupadd, groupdel,
passwd, 以及 gpasswd.
典型的用户添加命令如下:
#useradd -m -s /bin/bash johndoe
#passwd johndoe
第一个命令将会为系统添加一个名为 johndoe 的用户,在 /home/johndoe 为他创建用户目录,然后在目录下放置一些默认的登入文件。系统还会将他登入的 Shell (命令行解释器)设定为 /bin/bash。
第二个命令将会向你请求一个 johndoe 用户的密码。激活帐户是需要设置密码的。
作为命令 useradd 的另一可选项,adduser 脚本同样可以通过一些简单的问题交互为你的系统创建新的用户。
余下的命令可通过查看 manpages 来获得更多的信息。
为日常工作创建一个或多个常规用户是个好主意,它可以充分的使用所有可用的安全的功能以及将可能的损害最小化,而 root 用户仅用于系统管理。
评论
Your choice is
Your choice is clever.
custom suits
tailor made suits
custom made suits
mens suits
Christianlouboutinfactory[Custom-made2]
Christian Louboutin shoes on sale
Classic Black Collection
Hot-Red
Christian Louboutin Boots
Christian Louboutin D'orsay
Christian Louboutin Mary Janes
Christian Louboutin Pumps
Christian Louboutin Slingback
Christian Louboutin Sandals
Christian Louboutin Flats
Yves Saint Laurent Boots
Yves Saint Laurent Pumps
Yves Saint Laurent Sandals
Jimmy Choo Boots
Jimmy Choo Pumps
Jimmy Choo Sandals
Jimmy Choo Slingbacks
christian louboutin
christian louboutin factory
ray-ban-polarized[For Pop]
ray ban aviator
ray ban outlet
ray ban polarized
ray ban polarized sunglasses
ray ban sunglasses
ray ban wayfarer
ray ban 2140
ray ban 2140
ray ban 3029
ray ban 4125