- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restricted Ftp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 10:02 AM
08-06-2004 10:02 AM
Restricted Ftp
On a Hpux 11.00 server, i need to setup a restricted ftp user account i.e a ftp account which cannot traverse above it's home directory (similar to anonymous ftp account).
Do i need to enable ftpaccess for this purpose? the server is currently running ftpd without -a option in the inetd.conf file and there is no /etc/ftpd/ftpaccess file.
I tried setting up the restricted ftp account through the normal procedure used in 10.20. (i.e create ftp id, change the home directory in this format /home/xx/./ ; create etc, usr/bin structure in the homedir and copy ls , passwd ,group files ). But, whenever i ftp with the login , it allows me to navigate above the home directory.
Is enabling ftpaccess compulsory for using restricted ftp account? Anonymous ftp is working fine without ftpaccess.
TIA
RB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 10:25 AM
08-06-2004 10:25 AM
Re: Restricted Ftp
One way you can do this, and much more, is by downloading the WU-FTPD product from HP Software Depot:
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=WUFTPD26
This version runs on both 11.0 and 11i and it allows you to configure ftp access with much more control and granularity than the regular ftp version that ships with HP-UX 11.0.
The release notes for this version come with the product, but are also available on http://docs.hp.com:
http://www.docs.hp.com/hpux/onlinedocs/5990-8588/5990-8588.html
The document covers the feature you're looking for - restricting users to specific directories.
Hope this helps,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 11:12 AM
08-06-2004 11:12 AM
Re: Restricted Ftp
Yes I do beleive you need to create ftpaccess file to chroot a ftp user.
# cp /usr/newconfig/etc/ftpd/ftpaccess /etc/ftpd/
# vi /etc/inetd.conf
add -a and -l option to ftpd
# inetd -c
Create the user
# vi /etc/ftpd/ftpaccess
guestgroup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 05:58 PM
08-06-2004 05:58 PM
Re: Restricted Ftp
--- /etc/inetd.conf --
ftpd -a -l -r
-a will read informations from /etc/ftpd/ftpaccess file. You can get it over /usr/newconfig/etc/ftpd/examples/ftpaccess file
-l logging into syslog
-r it will make changing root directory to the specified one after login into ftp
If you don't want to configure ftpaccess file you can control it using -r option of ftpd as,
-r rootdir Instructs the daemon to chroot (see chroot(2)) to
the specified rootdir immediately upon loading.
This can improve system security by limiting the
files which may be damaged should a break-in occur
through the daemon. This option is like anonymous
FTP. For this option to work properly additional
files may be needed under the specified rootdir,
which can vary from system to system.
-muthu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 02:29 AM
08-09-2004 02:29 AM
Re: Restricted Ftp
Thanks for the responders. So, can i conclude from the responses that, for using restricted ftp account(with chroot), "ftpaccess" is indeed required to be configured and enabled(thru inetd.conf -a option). This is on a 11.00 server which is currently running as ftpd -l (not enabled ftpaccess).