分类: LINUX
2013-03-28 11:46:34
创建帐号: [root @test /root ]# useradd [-u UID] [-g GID] [-d HOME] [-mM] [-s shell] username 参数说明: -u :直接给予一个 UID -g :直接给予一个 GID (此 GID 必须已经存在于 /etc/group 当中) -d :直接将他的家目录指向已经存在的目录(系统不会再建立) -M :不建立家目录 -s :定义其使用的 shell 范例: [root @test /root]# useradd testing <==直接以预设的数据建立一个名为 testing 的账号 [root @test /root]# useradd -u 720 -g 100 -M -s /bin/bash testing <==以自己的设定建立账号 创建帐号密码: [root @test /root]# passwd [username] [test @test /root]# passwd [root @test /root]# passwd test Changing password for user test New password: <==输入密码 BAD PASSWORD: it is based on a dictionary word Retype new password: <==再输入一次! passwd: all authentication tokens updated successfully