- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp list not working after chroot works
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
04-24-2002 04:21 AM
04-24-2002 04:21 AM
ftp list not working after chroot works
My user (ftptest) is part of the ftponly group, and has in the passwd :
ftptest:z4v2E/DviCN9A:100:102::/home/ftptest/./:/usr/bin/ftpshell
My users log on to our ftp server using a NT program. When using this new account (chrooted) there is no problem, but when other "normal" users try then to connect the cannot see the file in the window of the ftp client.
That is what the get in the Gui :
< 200 PORT command successful.
> TYPE A
< 200 Type set to A.
> LIST
< 150 Opening ASCII mode data connection for /usr/bin/ls.
< LISTERROR: drwxr-xr-x 2 root root 96 9 avr 13:02 building
< LISTERROR: drwxr-xr-x 4 root root 1024 10 avr 21:16 cmcluster
< LISTERROR: -rw-r--r-- 1 root root 122880 10 avr 21:13 cmcluster.tar
< LISTERROR: -rw-r--r-- 1 root root 6537 15 avr 12:55 debug.log
No problem with chrooted accounts but not other accounts cannot list correctly. My /etc/inetd.conf (ftp line):
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -i -o -a -v
my /etc/ftpd/ftpaccess :
class local real,guest,anonymous *.domain 0.0.0.0
class remote real,guest,anonymous *
guestgroup ftponly
Has anybody an idea ? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 04:45 AM
04-24-2002 04:45 AM
Re: ftp list not working after chroot works
/home/ftpuser/bin
Then under the /home/ftpuser/bin you want to copy the following:
cp /usr/bin/pwd /home/ftpuser/bin
cp /sbin/ls /home/ftpuser/bin
To clean up for permissions:
chmod 0111 /home/ftpuser/bin/ls
chmod 0111 /home/ftpuser/bin/pwd
chown root /home/ftpuser/bin
chmod 0555 /home/ftpuser/bin
Now when the ftpuser logs in they have their own copy of ls and pwd...note that ls command copies from /sbin/ls not from /usr/bin !!!
Hope this helps,
Rit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 05:22 AM
04-24-2002 05:22 AM
Re: ftp list not working after chroot works
Problems with bart user for example, that should go in /home/bart without being chrooted. See screen capture of the first message. Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 05:38 AM
04-24-2002 05:38 AM
Re: ftp list not working after chroot works
Do you know if you have an installation of wu-ftpd?
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 06:10 AM
04-24-2002 06:10 AM
Re: ftp list not working after chroot works
/usr/lbin/ftpd:
$Id: ftpd.c,v 1.22 1996/04/15 05:51:04 sob Exp sob $ based on ftpd.c 5.40 (Berkeley) 7/2/91
Copyright (c) 1985, 1988, 1990 Regents of the University of California.
$Id: ftpcmd.y,v 1.8 1996/03/15 06:26:20 sob Exp $ based on ftpcmd.y 5.24 (Berkeley) 2/25/91
Revision 1.1.214.8 Fri Apr 20 07:27:42 GMT 2001
$Id: glob.c,v 1.6 1996/03/16 04:00:06 sob Exp $ from glob.c 5.9 (Berkeley) 2/25/91
popen.c 5.9 (Berkeley) 2/25/91
$Id: logwtmp.c,v 1.7 1995/10/15 06:35:17 sob Exp $
logwtmp.c 5.7 (Berkeley) 2/25/91
$Id: access.c,v 1.8 1996/03/15 07:29:08 sob Exp $
$Id: extensions.c,v 1.16 1996/03/15 06:26:20 sob Exp $
$Id: realpath.c,v 1.7 1996/03/15 08:15:56 sob Exp $
$Id: private.c,v 1.6 1995/12/11 09:20:19 sob Exp $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 06:44 AM
04-24-2002 06:44 AM
Re: ftp list not working after chroot works
For other users (REAL users) that are allowed to connect and to browse from their home directory, I have a strange list problem, see the screen capture of the first message. This only happens for users NOT chrooted, which is quite annoying because I want to use this on a production server where some users are chrooted, and the others not..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 11:12 AM
04-24-2002 11:12 AM
Re: ftp list not working after chroot works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2002 11:46 PM
04-24-2002 11:46 PM
Re: ftp list not working after chroot works
what are the permissions and ownership of ls binary under your bin directory of chroot directory ?.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 02:07 AM
04-25-2002 02:07 AM
Re: ftp list not working after chroot works
I've searched a long time how to set up chroot ftp, now it works fine, but problems with non-chrooted users appear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 02:40 AM
04-25-2002 02:40 AM