Creating FTPonly User Acc?



Hi,

I'm trying to create a "ftponly" user account on solaris 9 & 10 & somehow i'm getting permission denied. Could someone please help?

Here are the steps that I do:

On the 1st machine:
===============
# echo 'echo "This account only allows FTP Access." ' > /bin/ftponly
# chmod a+x /bin/ftponly
#ls -la /bin/ftponly
-rwxr-xr-x 1 root root 44 Oct 18 09:27 /bin/ftponly

# ls /bin/ksh > /etc/shells
# vi /etc/shells ----------> Add /bin/ftponly
# chmod a+x /etc/shells
# useradd -c "FTP Only User" -d /oraclesw/ftpfiles -m -s /bin/ftponly -g oinstall ftponly
# passwd ftponly
.......
# grep ftponly /etc/group
oinstall::101:oracle,ftponly

#ls -la /oraclesw/ftpfiles
total 4
drwxr-xr-x 2 root root 512 Oct 18 09:32 .
drwxr-xr-x 7 oracle oinstall 512 Oct 18 09:32 ..


On a 2nd machine:
==============
# ftp suntest1
.........

ftp> ascii
200 Type set to A.
ftp> put test
200 PORT command successful.
553 test1: Permission denied.

Am I missing some steps here? Any helps are appreciated.
TIA,
-Chris
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: wu.ftpd not chrooting on AIX 5.2 for guest logins
    ... chmod 111 $FTPHOME/bin/ls ... chmod 555 $FTPHOME ... chown root $FTPHOME ... FTP client will work without it, ...
    (comp.unix.aix)
  • Re: NET::FTP problem w/CHMOD
    ... CHMOD 755 $file")' wouldn't hang the connection, ... successfully execute the chmod command via the ftp connection (I checked ... > Because of the nature of SITE commands being implementation specific ...
    (perl.beginners)
  • Using chmod via FTP - Help!!
    ... I'm try to change permission on a few files on an ftp server. ... The problem is, chmod doesn't work, ... it does not recognise chmod or "site chmod" or "qoute chmod" or any ... 500 'SITE CHMOD': command not understood. ...
    (comp.unix.misc)
  • move_uploaded_file + safe_mode
    ... I would like to upload a file, ... Next I tried to login via ftp, and do a chmod on that file from there ...
    (comp.lang.php)
  • Re: Securely serving files
    ... The problem is that when using Mkdirthe owner of the created folder isn't the same as the owner of the script, and PHP's safe mode therefore doesn't allow you to access the created folder (You can't even call Chmod() on it). ... Creating it through FTP solves this problem. ... Since you said symlinks are apparently working, ...
    (comp.lang.php)