使用 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 用户仅用于系统管理。
评论
Tory Burch Outlet tory burch
Tory Burch Outlet
tory burch uk
tory burch outlet store
tory burch sale
Ugg boots outlet
ugg boots cheap
Ugg outlet
cheap ugg boots
Ugg boots sale uk Whatever,
uk Ugg Boots chances are that you end up with boots that appear very similar ugg looking but bear no same flexibility,
Uggs On Sale durability, lightness as well as thermostatic benefits as the genuine UGG.
ugg boots outlet If you still desire to get an authentic pair,
Ugg outlet your local department stores and branded shoe shops are the best bet. If you can’ t find what exactly you want in the usual stores,
uggs outlet online go shopping online.
ugg online You can even find excellent sheepskin boots at a fraction of
ugg boots outlet their steep original sales price.