Skip to content

Instantly share code, notes, and snippets.

@njujerry
Created May 16, 2017 01:21
Show Gist options
  • Save njujerry/303e95b0a95841d1d82e5ca5c9e2f6e3 to your computer and use it in GitHub Desktop.
Save njujerry/303e95b0a95841d1d82e5ca5c9e2f6e3 to your computer and use it in GitHub Desktop.
linux添加ftp用户

linux添加ftp用户

useradd -d /home/ci/ftp/ -g ftp -s /sbin/nologin ci_admin

-d 指定用户的根目录 -s 登陆后执行的shell,/sbin/nologin表示不允许ssh登陆,只允许ftp连接 -g 表示用户所在的组

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment