1752762 Members
5165 Online
108789 Solutions
New Discussion юеВ

Re: restrict ftp user

 
Sial_1
Frequent Advisor

restrict ftp user

hi all,

Do u know how to restrict on HP-UX ftp user to have access to only their home directiories? and also want that restrict this user not to connect system through telnet, rlogin or ssh.

7 REPLIES 7
Luk Vandenbussche
Honored Contributor

Re: restrict ftp user

Hi,

You define this in /var/adm/inetd.sec

You can also modify it through sam

Networking and communications
System Access
Remote logins
Steven E. Protter
Exalted Contributor

Re: restrict ftp user

Shalom,

The shell /usr/bin/false in /etc/passwd as the default shell prevents non-ftp logins.

The ftpaccess file in your ftpd server can be modified to chroot the user and make their home directory their root directory.

All binaries they need for ftp, e.g. the ls must be provided to the local home directory for this user.

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
Peter Godron
Honored Contributor

Re: restrict ftp user

Hi,
you want to read:
man ftpaccess

and/or these earlier threads:

"How can I restrict ftp user within its home director?"
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=137882

"ftp restriction"
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=837471
Asif Sharif
Honored Contributor

Re: restrict ftp user

Dear Kashif,

Plese find the atatched document. It will help you.

Regards,
Asif Sharif
Regards,
Asif Sharif
Samir Pujara_1
Frequent Advisor

Re: restrict ftp user

Hi,

What is the version of hp-ux you are running on your server. HP_UX 11i v1 onwards you have inbuild chroot utility. you need to just run a script /opt/ssh/ssh_chroot_setup.sh

Samir
Sial_1
Frequent Advisor

Re: restrict ftp user

Thanks all of you especially asif.
Sial_1
Frequent Advisor

Re: restrict ftp user

Thanks all of you especially asif.