- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to to 'ls' in a ftp account
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
11-28-2005 03:21 AM
11-28-2005 03:21 AM
I have created one ftponly account, and created the usr/bin directory in the home directory of the ftp account. and copied the /usr/bin/ls file to that directory.
After logging the ftp , if i give ls command iam getting the following error message
-----------------------------------------
150 Opening ASCII mode data connection for /usr/bin/ls.
crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000002
226 Transfer complete.
------------------------------------------
i have tried by creating a link file of /usr/bin/ls in the /ftphomedir/usr/bin .
but ls is not working.
Also dir command is also not working
Can any body help in this ..
Regds,
psn
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 03:25 AM
11-28-2005 03:25 AM
Re: unable to to 'ls' in a ftp account
try copying /usr/lib/libdld.sl to /ftphomedir/lib (or /ftphomedir/usr/lib )
and having proper owner.
Jean-Yves
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 03:28 AM
11-28-2005 03:28 AM
SolutionListed below is a HOWTO.
Setting up restricted FTP accounts
Knowledge Base DocID KBRC00008355
Setting up restricted user accounts with FTP
DocId: KBRC00008355 Updated: 4/19/04 11:41:00 AM
PROBLEM
How can I restrict certain users to one directory though ftp?
RESOLUTION
The new version of FTP is supplied to HP-UX 11.00 through patch PHNE_29460
and this must be installed on your system. Please check the release notes
provided at /usr/share/doc/RelNotes_newftp.txt for further information on
the enhancements provided by this FTP revision.
"Edited to comply with ITRC Guidelines"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 04:03 AM
11-28-2005 04:03 AM
Re: unable to to 'ls' in a ftp account
You need to copy the libbrary files , in the home directory of the ftp user.
hth,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 04:15 AM
11-28-2005 04:15 AM
Re: unable to to 'ls' in a ftp account
You can try this :
1. Create usr/lib on the home dir of ftp user.
2. keep the same permission.
# chown bin:bin lib
3. copy the required library files to the ftp users ~home/usr/lib/ :
# cp -p filename ~ftphome/usr/lib
(Where filename is the below files.. )
/usr/lib/dld.sl
/usr/lib/libc.2
/usr/lib/libcurses.1
/usr/lib/libdld.2
Hope this will help you,
Enjoy ,
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 07:04 PM
11-28-2005 07:04 PM
Re: unable to to 'ls' in a ftp account
It is working fine now after copying the lib files to the ftphomedir/usr/lib
Thanks a lot for your help
regds,
psn