>poprobuy echo "/bin/false" >> /etc/shells
Так не делай.
А делай так
cd /bin
ln true ftponly
echo '/bin/ftponly' >> /etc/shells
chsh -s /bin/ftponly username
>эх. а во фре просто /sbin/nologin
#cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/bash2
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
Redhat =) С nologin не зайти.
Ты насчет ln true ftponly ?
Why not? I can't explain it (no reason) :-)
Главное было не пихать /bin/false в /etc/shells, так как в passwd могут быть (и чаще всего есть) юзеры с таким шелом, но которым фтп доступ не положен.