- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- chroot in 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
01-18-2002 05:02 AM
01-18-2002 05:02 AM
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 05:10 AM
01-18-2002 05:10 AM
Re: chroot in FTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 05:18 AM
01-18-2002 05:18 AM
Re: chroot in FTP
The ftp only user id home directory should be /A/./
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 06:28 AM
01-18-2002 06:28 AM
Re: chroot in FTP
man 4 ftpaccess
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 02:01 AM
01-21-2002 02:01 AM
Re: chroot in FTP
* Created a group for that user:
root@grecopr2:/yo# cat /etc/group | grep agri
ftpagri::105:agri
root@grecopr2:/yo#
* Setup the /etc/passwd entry:
root@grecopr2:/yo# cat /etc/passwd | grep agri
agri:L5oxlGqm84Zj2:350:105:Prueba de Ruben:/yo/./:/usr/bin/false
root@grecopr2:/yo#
* Setup /etc/ftpd/ftpaccess:
root@grecopr2:/yo# cat /etc/ftpd/ftpaccess | grep guestgroup
guestgroup ftpagri
root@grecopr2:/yo#
* Added "-a" option to inetd.conf entry for ftpd:
root@grecopr2:/yo# cat /etc/inetd.conf | grep /ftpd
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
root@grecopr2:/yo#
* Restarted inetd.
* Now, I try to use the account:
root@grecopr2:/# ftp localhost
Connected to localhost.
220 grecopr2 FTP server (Version 1.1.214.7 Thu Aug 10 09:57:38 GMT 2000) ready.
Name (localhost:root): agri
331 Password required for agri.
Password:
230 User agri logged in. Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is current directory.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
226 Transfer complete.
ftp> quit
221 Goodbye.
root@grecopr2:/#
It doesn't list! Says it lists "/usr/bin/ls" :? If I upload something, make dirs, delete, etc, it works fine, but listing doesn't. What am I doing wrong? :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 02:21 AM
01-21-2002 02:21 AM
Re: chroot in FTP
What are the permissions of your FTPROOT directory? It has to be r-x (readable and executable) by the FTP user in order to allow files to be listed.
To troubleshoot, try setting your FTPROOT to
# chmod ugo+rx YOUR_FTPROOT
After FTP logon, perform a dir, ls and ls -la.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 02:27 AM
01-21-2002 02:27 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 05:38 AM
01-21-2002 05:38 AM