Set up user for ftp only and chroot is done on vsftpd ===================================================== [root@igloo root]# grep ipradio /etc/passwd ipradio:x:537:537:ip Radio:/var/www/html/ipradio:/usr/bin/passwd [root@igloo root]# grep passwd /etc/shells /usr/bin/passwd [root@igloo root]# cat /etc/vsftpd.conf ... # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). chroot_list_enable=YES # (default follows) chroot_list_file=/etc/vsftpd.chroot_list ... [root@igloo root]# cat /etc/vsftpd.chroot_list ipradio [root@igloo root]# /etc/rc.d/init.d/xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ] Testing ... [root@igloo root]# ftp igloo Connected to igloo (137.111.20.252). 220 ready, dude (vsFTPd 1.1.0: beat me, break me) Name (igloo:terrence): ipradio 331 Please specify the password. Password: 230 Login successful. Have fun. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls -al 227 Entering Passive Mode (137.111,20,252,78,236) 150 Here comes the directory listing. drwxr-xr-x 9 537 537 4096 Feb 11 02:45 . drwxr-xr-x 9 537 537 4096 Feb 11 02:45 .. -rw------- 1 537 537 51 Feb 11 01:35 .Xauthority ... ftp> cd / 250 Directory successfully changed. ftp> ls -al 227 Entering Passive Mode (137.111,20,252,187,145) 150 Here comes the directory listing. drwxr-xr-x 9 537 537 4096 Feb 11 02:45 . drwxr-xr-x 9 537 537 4096 Feb 11 02:45 .. -rw------- 1 537 537 51 Feb 11 01:35 .Xauthority ... |