全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1240|回复: 2
打印 上一主题 下一主题

装完LNMP一键安装包后,安装VSFTP设置出现问题?

[复制链接]
跳转到指定楼层
1#
发表于 2010-12-23 20:46:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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 编辑 ]
2#
 楼主| 发表于 2010-12-23 20:55:03 | 只看该作者
:'( :'( :'( :'( 理一下我吧。谢谢大家啦
3#
发表于 2010-12-24 04:54:36 | 只看该作者
小白装PureFTPd
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-15 00:20 , Processed in 0.100517 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表