Operating System - HP-UX
1854708 Members
11033 Online
104102 Solutions
New Discussion

unable to to 'ls' in a ftp account

 
SOLVED
Go to solution
psn
Occasional Contributor

unable to to 'ls' in a ftp account

Hi Guru's,

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
5 REPLIES 5
Jean-Yves Picard
Trusted Contributor

Re: unable to to 'ls' in a ftp account

hello

try copying /usr/lib/libdld.sl to /ftphomedir/lib (or /ftphomedir/usr/lib )
and having proper owner.

Jean-Yves
Rick Garland
Honored Contributor
Solution

Re: unable to to 'ls' in a ftp account

If this is a restrictive ftp account, copy the files over. Also include the libraries since the commands (like ls) depend on these libraries to function.

Listed 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"
Raj D.
Honored Contributor

Re: unable to to 'ls' in a ftp account

Hi Psn,

You need to copy the libbrary files , in the home directory of the ftp user.

hth,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: unable to to 'ls' in a ftp account

Hi Psn ,

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.


" If u think u can , If u think u cannot , - You are always Right . "
psn
Occasional Contributor

Re: unable to to 'ls' in a ftp account

Hi All,

It is working fine now after copying the lib files to the ftphomedir/usr/lib

Thanks a lot for your help

regds,
psn