全球主机交流论坛

标题: 装完LNMP一键安装包后,安装VSFTP设置出现问题? [打印本页]

作者: zisetian    时间: 2010-12-23 20:46
标题: 装完LNMP一键安装包后,安装VSFTP设置出现问题?
useradd –s /sbin/nologin –d /home/www -g ftp name

想做限制登陆系统,但是执行这个命令却出错?

Usage: useradd [options] LOGIN

Options:
  -b, --base-dir BASE_DIR       base directory for the new user account
                                home directory
  -c, --comment COMMENT         set the GECOS field for the new user account
  -d, --home-dir HOME_DIR       home directory for the new user account
  -D, --defaults                print or save modified default useradd
                                configuration
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP for the new user account
  -G, --groups GROUPS           list of supplementary groups for the new
                                user account
  -h, --help                    display this help message and exit
  -k, --skel SKEL_DIR           specify an alternative skel directory
  -K, --key KEY=VALUE           overrides /etc/login.defs defaults
  -m, --create-home             create home directory for the new user
                                account
  -l,                       do not add user to lastlog database file
  -M,                       do not create user's home directory(overrides /etc/login.defs)
  -r,                       create system account
  -o, --non-unique              allow create user with duplicate
                                (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new user
                                account
  -s, --shell SHELL             the login shell for the new user account
  -u, --uid UID                 force use the UID for the new user account
  -Z, --selinux-user SEUSER     use a specific SEUSER for the SELinux user mapping


提示这个啦?这里是我哪里出错了么?用的84的。麻烦大家一下啦。

好像是提示我的用法不对的?求大虾指教一下哪里出错啦?

想安装个FTP方便上传文件。。。。

[ 本帖最后由 zisetian 于 2010-12-23 20:49 编辑 ]
作者: zisetian    时间: 2010-12-23 20:55
:'( :'( :'( :'( 理一下我吧。谢谢大家啦
作者: inla    时间: 2010-12-24 04:54
小白装PureFTPd




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4