[oclug] ProFTP
Collin McCrank
cmccrank at atlsci.com
Mon Feb 12 08:59:59 EST 2001
Hello,
I have recently setup proftp and have a configuration question and I
hope somebody out there has a solution for me.
Here is the problem. I used to have wu-ftp installed and I set the
default shell to be ftponly (I will show this file later) this basically
didn't allow any of the ftp users to log onto the machine except for
when they ftp.
Now when I try to do the same with proftp it won't allow the user to
logon unless I set the default shell to something like bash or csh.
I don't like this as I would prefer that the ftp users only be able to
logon using ftp.
Here is a sample entry from my passwd file
rob:x:517:517::/home/warez:/bin/ftponly
And here is the ftponly file located in /bin
***********************
#!/bin/sh
#
# ftponly shell
#
trap "/bin/echo Sorry; exit 0" 1 2 3 4 5 6 7 10 15
#
IFS=""
Admin=webmaster at mccrank.com
System=`hostname`
#
/bin/echo
/bin/echo
"********************************************************************"
/bin/echo " You are NOT allowed interactive access to $System."
/bin/echo
/bin/echo " User accounts are restricted to ftp and web access."
/bin/echo
/bin/echo " Direct questions concerning this policy to $Admin."
/bin/echo
"********************************************************************"
/bin/echo
#
# C'ya
#
exit 0
**********************************************************************
Any thoughts or suggestions?
Thanks
Collin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmccrank.vcf
Type: text/x-vcard
Size: 333 bytes
Desc: Card for Collin McCrank
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20010212/3b82b9f9/cmccrank.vcf
More information about the OCLUG
mailing list