HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- anonymous ftp server on HP-UX 11.11
Operating System - HP-UX
1837522
Members
3591
Online
110117
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-11-2004 08:31 AM
03-11-2004 08:31 AM
anonymous ftp server on HP-UX 11.11
I was just wondering, HP Docs gives an example on how to build an anonymous ftp server. One of the steps copies over the commands pwd and ls.
Why do this since the commands pwd and ls are built commands in ftp. Is there some historical reason?
# Copy the ls and pwd commands from /sbin to ~ftp/usr/bin, and set the permissions on the commands to 0111 (executable only):
cp /sbin/ls /home/ftp/usr/bin
cp /sbin/pwd /home/ftp/usr/bin
chmod 0111 /home/ftp/usr/bin/ls
chmod 0111 /home/ftp/usr/bin/pwd
Why do this since the commands pwd and ls are built commands in ftp. Is there some historical reason?
# Copy the ls and pwd commands from /sbin to ~ftp/usr/bin, and set the permissions on the commands to 0111 (executable only):
cp /sbin/ls /home/ftp/usr/bin
cp /sbin/pwd /home/ftp/usr/bin
chmod 0111 /home/ftp/usr/bin/ls
chmod 0111 /home/ftp/usr/bin/pwd
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 10:00 AM
03-11-2004 10:00 AM
Re: anonymous ftp server on HP-UX 11.11
They are assuming that you are going to build a chroot "jail" for any users logging into your system anonymously. That is, these users will not be able to freely browse all your file systems.
Therefore, you need to copy statically linked versions of these utilities into the specified directories to allow the anonymous users access to the functions provided by these utilities.
Therefore, you need to copy statically linked versions of these utilities into the specified directories to allow the anonymous users access to the functions provided by these utilities.
Remember, wherever you go, there you are...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 10:49 AM
03-11-2004 10:49 AM
Re: anonymous ftp server on HP-UX 11.11
But it works without the commands as well. The "ls" and the "pwd" commands are built into the ftp command. I tested it by removing the commands in ~ftp/usr/bin and it still worked. Only the built in "ls" was limited with no flags.
If you run help after logging in via ftp the commands include "ls" and "pwd".
ftp> help ls
ls list contents of remote directory
ftp> help pwd
pwd print working directory on remote machine
I'm thinking maybe in the past ftp didn't have these commands built in and it just carried over when building anonymous ftp.
If you run help after logging in via ftp the commands include "ls" and "pwd".
ftp> help ls
ls list contents of remote directory
ftp> help pwd
pwd print working directory on remote machine
I'm thinking maybe in the past ftp didn't have these commands built in and it just carried over when building anonymous ftp.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP