- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftpaccess ls not working
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
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
10-28-2005 08:00 AM
10-28-2005 08:00 AM
with wu-ftpd restricted user not being able
to "ls" files in ftp home but I still cannot
get "ls" to work. The man page is useless.
I put /usr/bin/ls into ftp user home usr/bin.
I have local ftp user account with home having
/./ in it's path and shell /etc/ftponly.
/etc/ftponly path is in /etc/shells.
Local group entry in /etc/group entry.
/etc/inetd.conf has ftpd -a -l
Ran inetd -c.
/etc/ftpd/ftpaccess has in it:
loginfails 2
class all real,guest,anonymous *
guestgroup transftp
limit all 10 Any /etc/msgs/msg.toomany
readme README* login
readme README* cwd=*
message /welcome.msg login
message .message cwd=*
message .message login
compress yes all
tar yes all
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
upload /share/transfers * yes irvftp2 ftptrans 0660
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 08:07 AM
10-28-2005 08:07 AM
SolutionI would suggest to copy /sbin/ls to /usr/bin/ under user's home directory. This way you dont have to worry about the shared libs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 09:08 AM
10-28-2005 09:08 AM
Re: ftpaccess ls not working
/usr/lbin/ls - ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 09:09 AM
10-28-2005 09:09 AM
Re: ftpaccess ls not working
it is still using /usr/bin/ls.
ftp> ls -la
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
226 Transfer complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 09:14 AM
10-28-2005 09:14 AM
Re: ftpaccess ls not working
Did you try this
# cd /users/home/dir
# rm usr/bin/ls
# cp -p /sbin/ls usr/bin/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 09:55 AM
10-28-2005 09:55 AM
Re: ftpaccess ls not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 09:08 PM
10-28-2005 09:08 PM
Re: ftpaccess ls not working
does the ftp-user in question have the necessary file access rights for e.g. usr/bin/ls?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 05:39 AM
10-29-2005 05:39 AM
Re: ftpaccess ls not working
Keep in mind that this is
Revision 1.004 Version wuftpd-2.6.1
Under ftp help "ls" is a command option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 06:11 AM
10-29-2005 06:11 AM
Re: ftpaccess ls not working
I was wondering whether ftpaccess at all is in effect: when you establish a connection does the system then say "access restrictions apply" if not, the described ftpaccess configuration is disregarded.
I take take it that your user is a member of transftp?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 07:08 AM
10-29-2005 07:08 AM
Re: ftpaccess ls not working
and when putting files, it is following
upload configs in ftpaccess that I want
for perms. 660.
I remeber something about putting ls
in ftpaccess other than just in usr/bin.
And something about putting something
in ./lib for the ftp user to be able to
run ls. But I'm not sure anymore.
Surely there must be some good examples
somewhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 09:33 PM
10-29-2005 09:33 PM
Re: ftpaccess ls not working
I am out of possibilities, but just wondering whether the inface expects "dir" instead - may sound idiotic, but have you tried?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2005 03:10 AM
10-30-2005 03:10 AM
Re: ftpaccess ls not working
I can do an nlist which shows a short listing.
I am wondering about the ftpaccess man page about:
lsplain
lslong
lsshort
It states that /usr/bin/ls can be switched
to use another path for ls. But I can't get
that to work either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2005 05:56 AM
10-30-2005 05:56 AM
Re: ftpaccess ls not working
last attempt: you state that usr/bin/ls permissions are 555, but does the user in question have execute permissions for the usr and usr/bin dirs (I think that is necessary)?
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2005 09:57 AM
10-30-2005 09:57 AM
Re: ftpaccess ls not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 08:39 AM
11-08-2005 08:39 AM
Re: ftpaccess ls not working
before the /./ in the home path.
So with /home/./ftp
ls goes in /home/usr/bin/ls.
And add in /etc/ftpd/ftpaccess
lslong /usr/bin/ls -la
lsshort /usr/bin/ls