1834931 Members
2556 Online
110071 Solutions
New Discussion

Re: ftp only

 
navin
Super Advisor

ftp only

Hello,
I need to set up an ftp only account on a box running hpux 11.23
The account needs to be ftp only ,not loginable and limit to the staging area say /stage .
Any idea on how should perform this.
Thanks much in advance
Learning ...
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: ftp only

Shalom,

Set the home directory to /stage in /etc/passwd
Set the shell in /etc/passwd to /usr/bin/nologin or /usr/bin/false

Make sure the shell you use actually exists and test that it does not permit login.

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
navin
Super Advisor

Re: ftp only

Steve,
Thanks much it works , but i would like to lock down to the staging area .but i'm able to change the directory .
please advice
Learning ...
Ivan Krastev
Honored Contributor

Re: ftp only

Implement chroot for ftp - see example in previous thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=876162

Also see 'man ftpaccess'.

regards,
ivan