Color Scheme
搜索用户
帐号
密码
注册
old site http://222.195.74.11/
English Version 当前位置: 首页 >> 申成龙 : 个人简历 - 发表论文 - 博客

IDL & Linux

Poster:

1. 如何限制某个用户只能FTP不能TELNET?[zz]
很简单,修改此用户的shell即可。打开/etc/password,查找要修改的用户所对应的记录,如:
          在我的hiweed中,是/etc/passwd
floatboat:x:500:500::/home/floatboat:/bin/bash
  要禁止floatboat用户登录,只需要把此行中的“/bin/bash”改为/usr/bin/passwd即可。这样用户telnet上服务器只能修改密码,而无法直接控制台。
  当然,如果你希望连密码都不允许此用户修改,只要把shell改为“/sbin/nologin”即可。
申成龙
Posted at 2006-12-26 22:39 CST
Last modified at 2006-12-26 22:39 CST
Link to this poster
Top


位置 | 访问统计 | FAQ
Best view under the 1024x768 resolution and with the normal size of fonts.
Designed & developed by Yuming Wang, run for 7240 days since December 15, 2006, and last upgraded on May 28th, 2009.
Powered by Apache + PHP coded cOpfOs 3.11.1 last upgraded on February 22nd, 2010.
Copyright © 2006, all rights reserved.