[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 如何设置vsftp,使得用户不可以登陆系统,但是可以登陆vsftp



"blue_stone" <blue_stone@xinhuanet.com> writes:


[...]

> 我使用vsftp坐ftp服务器,请问我应该如何设置vsftp或系统,使得某些用户可
> 以访问ftp,但是不可以通过ssh登陆系统?

,----[ man sshd_config ]
|      DenyGroups
|              This keyword can be followed by a list of group name patterns,
|              separated by spaces.  Login is disallowed for users whose primary
|              group or supplementary group list matches one of the patterns.
|              `*' and `?' can be used as wildcards in the patterns.  Only group
|              names are valid; a numerical group ID is not recognized.  By de-
|              fault, login is allowed for all groups.
| 
|      DenyUsers
|              This keyword can be followed by a list of user name patterns,
|              separated by spaces.  Login is disallowed for user names that
|              match one of the patterns.  `*' and `?' can be used as wildcards
|              in the patterns.  Only user names are valid; a numerical user ID
|              is not recognized.  By default, login is allowed for all users.
|              If the pattern takes the form USER@HOST then USER and HOST are
|              separately checked, restricting logins to particular users from
|              particular hosts.
`----




Reply to: