Re: Restrict FTP user to a directory tree (NOT anonymous login)
- From: "Hajo Ehlers" <service@xxxxxxxxxxxxx>
- Date: 7 Mar 2006 10:31:46 -0800
steven_nospam at Yahoo! Canada wrote:
Hi,
I have been researching the FTP logins and using anonymous logins for
FTP transfers, but I have been having a bit of trouble getting a
non-anonymous FTP login working proeprly so that the user cannot simply
cd to another directory out of their directory tree and see files
there.
A user with an local user account and password should be able to see
what he/she is allowed if using local login.
When I use the anonymous user, it issues the chroot to keep the user
pinned in a particular directory tree. I tried to use the
/etc/ftpaccess.ctl file to add another user called "privxfer" but it
does not seem to handle the chroot properly. When I am in the account,
I can cd up and see all users in the /home directory. (Maybe my
permissions on the dirs are wrong?)
From IBM:
Security Concerns with Anonymous FTP:
When creating anonymous ftp users and directories please be
sure that
the home directory for users ftp, anonymous (ie. /home/ftp) and
any
-->->>> defined users from /etc/ftpaccess.ctl <<<<<----
is owned by root and does not allow write permissions (ie.
dr-xr-xr-x). The
script /usr/lpp/tcpip/samples/anon.ftp can be used to create
the
user ftp accounts, files and directories. The script
/usr/lpp/tcpip/samples/anon.users.ftp can be used to create the
defined anonymous (from /etc/ftpaccess.ctl) user accounts,
files
and directories.
You might like to read
http://www16.boulder.ibm.com/pseries/en_US/cmds/aixcmds2/ftpd.htm to
setup an anoymous user which has an local account. But the password
will not be used.
What I am trying to accomplish (using standard AIX FTP, not a freeware
or add-on) is to see if I can create a login for a user that needs a
password (not anonymous) which cannot migrate up from the starting
directory I give them. They can read or write files all they want
within that structure, just not let them go anywhere else.
Have you fiddeling with the readline, writeline .. within the
ftpaccess.ctl ? ( Without using the userline of cource )
I have never heard of somethin like an ftpchroot file on AIX
I saw an option for /etc/ftpchroot file on another UNIX flavor, but it
seems AIX does not support this, or am I just not using it right?
hth
Hajo
.
- Follow-Ups:
- Re: Restrict FTP user to a directory tree (NOT anonymous login)
- From: steven_nospam at Yahoo! Canada
- Re: Restrict FTP user to a directory tree (NOT anonymous login)
- References:
- Restrict FTP user to a directory tree (NOT anonymous login)
- From: steven_nospam at Yahoo! Canada
- Restrict FTP user to a directory tree (NOT anonymous login)
- Prev by Date: sendmail replaced on reboot aix 5.3
- Next by Date: Re: HACMP question
- Previous by thread: Restrict FTP user to a directory tree (NOT anonymous login)
- Next by thread: Re: Restrict FTP user to a directory tree (NOT anonymous login)
- Index(es):
Relevant Pages
|