Operating System - HP-UX
1834639 Members
2357 Online
110069 Solutions
New Discussion

Re: FTP only users can't see files

 
Tim Woods_2
Advisor

FTP only users can't see files

I'm running HP-UX 11.0 on an D380, and I've setup a ftp only user according to the document

http://forums.itrc.hp.com/cm/components/FileAttachment/0,,0x4ebcd06ed8c8d4118fef0090279cd0f9,00.html

Everything works as expected except that the user can't see any files. I can upload files as the user and verify that the files are on the server but the user can't see the files or directories in its home. The user can make directories but cannot see them.

Our server is configured so that the ll and ls commands don't work in ftp and you must use dir. Could this be the root of my problem and if so where can I change that? Any ideas?
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: FTP only users can't see files

Hi Tim,

Check the read permissions on the directory for which the ftp user is trying to see the files. The ftp user id or its group should have read access to the directory for this it is trying to do a list "ls" .

hope this helps.

Regds
Helen French
Honored Contributor

Re: FTP only users can't see files

Hi,

Just a thought:

Check the directories are set with execute permission. ie. 'rwx'

HTH,
Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: FTP only users can't see files

Hi Tim,

Forgot one thing. If the command to list reaturns with a cannot stat message you need to set the execute "x" permission for the directory for that user/group too.

Hope this helps.

Regds
Tim Woods_2
Advisor

Re: FTP only users can't see files

Permissions are rwxr-xr-x on the users dir but I've tried changing them to 777 with no difference.

The ls command WILL work (I obviously couldn't have tried it like I thought) but ll returns Invalid Command and dir returns nothing. I may be able to get by with ls for a short time, but I would really like to change the ftp to recognize ll instead of or in addition to dir. Right now using a normal ftp, ll isn't recognized and dir returns the information that ll would give. As it stands I can't get extended information through a restricted ftp.