1832973 Members
2585 Online
110048 Solutions
New Discussion

ftp question

 
RJA
Advisor

ftp question

For a couple of users on our system, I would like the directory that they land in when issuing ftp to be a directory other that their defined home directory. How is this accopmlished automatically?
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: ftp question

Shalom,

ftp access does not have an environment, nor does it have the ability to have scripts on the front end.

What you wish may be impossible.

If possible perhaps in the ftpaccess file.

man ftpaccess

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
spex
Honored Contributor

Re: ftp question

Hello,

If you're using ProFTPD, the solution is simple, as ProFTPD automatically chroot's anonymous users. Add something like the following to proftpd.conf:


User user
Group group
AnonRequirePassword on

AllowAll



PCS
Jov
Honored Contributor

Re: ftp question

Hi,

Block those users from ftp-ing with their normal unix account and create another set of accounts just for ftp and withing the /etc/passwd, you can set different dir.

This should be fine to manage for a small number of accounts, but if this grows, you'll need another solution.

Jov