- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- B11.23 restricted ftp access and "ls" issue
Operating System - HP-UX
1753872
Members
7532
Online
108809
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО02-21-2008 02:19 PM
тАО02-21-2008 02:19 PM
I have implemented successfully chrooted restricted ftp access but still face an issue with "ls" command.
~ftp/usr/bin directory was created and "/bin/ls" copied but in vain.
nlist command works but "ls" does not.
Session shows :`
.... Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is current directory.
ftp> nlist
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
test_file
226 Transfer complete.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
226 Transfer complete.
Suggestion on how to troubleshoot this issue would be appreciated.Thanks.
~ftp/usr/bin directory was created and "/bin/ls" copied but in vain.
nlist command works but "ls" does not.
Session shows :`
.... Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is current directory.
ftp> nlist
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
test_file
226 Transfer complete.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
226 Transfer complete.
Suggestion on how to troubleshoot this issue would be appreciated.Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 02:59 PM
тАО02-21-2008 02:59 PM
Re: B11.23 restricted ftp access and "ls" issue
Reload ftp. Use swlist -l fileset | grep -i ftp. Note the product / packages, get an installation cd and reinstall.
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 05:43 PM
тАО02-21-2008 05:43 PM
Solution
> ~ftp/usr/bin directory was created and
> "/bin/ls" copied but in vain.
Did you get all the required run-time
libraries, too? You may be able to use
/usr/sbin/chroot for more interactive testing
(perhaps with better error messages).
"man 1m chroot"
Or, try copying "/sbin/ls" (and its friends)
instead of "/usr/bin/ls".
td192> ls -l /usr/bin/ls /sbin/ls
-r-xr-xr-x 1 bin bin 294912 May 5 2003 /sbin/ls
-r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/ls
One of them may be a bit more self-contained
than the other.
> "/bin/ls" copied but in vain.
Did you get all the required run-time
libraries, too? You may be able to use
/usr/sbin/chroot for more interactive testing
(perhaps with better error messages).
"man 1m chroot"
Or, try copying "/sbin/ls" (and its friends)
instead of "/usr/bin/ls".
td192> ls -l /usr/bin/ls /sbin/ls
-r-xr-xr-x 1 bin bin 294912 May 5 2003 /sbin/ls
-r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/ls
One of them may be a bit more self-contained
than the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2008 08:36 AM
тАО02-22-2008 08:36 AM
Re: B11.23 restricted ftp access and "ls" issue
Steven is correct.
Using /sbin/ls solves the issue.
10 points assigned.
Using /sbin/ls solves the issue.
10 points assigned.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP