分类: BSD
2007-11-21 16:13:11
安装好后的回忆!
首先我们在/etc/shells中添加/usr/bin/false一行。
我想将FTP的目录放到/var下我就把/etc/adduser.conf里的home地址改成/var,这样等下创建的FTP账号目录直接就在/var下拉!
好拉!~ 开始拉!~
# adduser
Enter username []: ftp
Enter full name []: anonymous ftp
Enter shell csh false ksh nologin sh tcsh zsh [sh]: false
Uid [1002]: Enter
Login group ftp [ftp]: Enter
Login group is ``ftp''. Invite ftp into other groups: guest no
[no]: no
Login class auth-defaults auth-ftp-defaults daemon default staff
[default]: Enter
Enter password []: Enter
Set the password so that user cannot logon? (y/n) [n]: y
Name: ftp
Password: ****
Fullname: anonymous ftp
Uid: 1002
Gid: 1002 (ftp)
Groups: ftp
Login Class: default
HOME: /var/ftp
Shell: /usr/bin/false
OK? (y/n) [y]: y
Added user ``ftp''
Copy files from /etc/skel to /var/ftp
Add another user? (y/n) [y]: n
Goodbye!
然后修改/etc/inetd.conf 将下面这行前的注释“#”去掉!
这里rc.conf里的FTP选项就不用改
inetd.conf和rc.conf 是两种工作模式!只要开一个就可以!所以我开的是inetd.conf,两个都打开会有烦人的系统信息。
现在就OK了! 重启系统即可!
# reboot