- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DIR command not working for guest users wu-ftp...
Categories
Company
Local Language
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
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
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
09-18-2006 05:02 AM
09-18-2006 05:02 AM
When a guest user connects they can put or get files but if they issue a 'dir' or 'ls' no list of files are returned. There is a message saying the /usr/bin/ls is being executed, but no files are listed.
If connected as real user both ls and dir work as expected.
Has anyone seen this? Do I need to add something to the ftpaccess file? Directory permissions?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 05:11 AM
09-18-2006 05:11 AM
Re: DIR command not working for guest users wu-ftpd
My guess is that your ftp server is using chroot.
when you do that the ls command needs to be accessible in the users home directory.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 05:13 AM
09-18-2006 05:13 AM
Re: DIR command not working for guest users wu-ftpd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 05:27 AM
09-18-2006 05:27 AM
Solutionyou need to create
and then copy
/sbin/ls
to
It is important that the ls command is from the static root-shell and thus self-contained and independent of libraries.
You need to secure execute permissions on
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 05:30 AM
09-18-2006 05:30 AM
Re: DIR command not working for guest users wu-ftpd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 05:50 AM
09-18-2006 05:50 AM
Re: DIR command not working for guest users wu-ftpd
try execute permissions only:
d--x--x--x
for usr.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 06:27 AM
09-18-2006 06:27 AM
Re: DIR command not working for guest users wu-ftpd
But I think I'm in good shape.
Thank you all for your quick responces and pointing me in the right direction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 07:11 AM
09-21-2006 07:11 AM
Re: DIR command not working for guest users wu-ftpd
I failed to follow your directions exactly and got myself in trouble.
You said to copy the ls from /sbin and I copied it from /usr/bin.
The one from /sbin is much better.
Thank you again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 09:12 AM
09-21-2006 09:12 AM
Re: DIR command not working for guest users wu-ftpd
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 09:29 AM
09-21-2006 09:29 AM
Re: DIR command not working for guest users wu-ftpd
Before you copy the directories into the local /usr/lib you get error messages saying it couldn't access this library or that library. after you copy the 4 or so libraries, ls stops complaining and runs and displays the file names, access lists, uid and gid just fine.
It just doesn't translate the uid and gid to user names and group names.
It must still be looking for something I didn't copy over.