- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- directories under /home/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-04-2001 07:20 PM
01-04-2001 07:20 PM
directories under /home/ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 08:17 PM
01-04-2001 08:17 PM
Re: directories under /home/ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 08:53 PM
01-04-2001 08:53 PM
Re: directories under /home/ftp
ftp> pwd
257 "/" is current directory.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 14
dr-xr-xr-x 2 root root 2 Jan 5 12:59 PROBE_DATA
drwxr-xr-x 71 icmsuser users 2048 Dec 20 00:00 PROBE_DATA.2000
drwxr-xr-x 74 icmsuser users 2048 Dec 30 09:33 WAFER_PROBE_SUMM
dr-xr-xr-x 2 icmsuser users 24 Aug 30 1999 dist
dr-xr-xr-x 2 icmsuser users 1024 Aug 30 1999 etc
lrwxr-xr-x 1 root sys 10 Jan 5 11:05 mklim -> /tmp/mklim
drwxrwxrwx 3 icmsuser users 1024 Oct 1 1999 pub
dr-xr-xr-x 4 icmsuser users 1024 Aug 30 1999 usr
226 Transfer complete.
ftp> cd mklim
550 mklim: No such file or directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2001 05:49 PM
01-06-2001 05:49 PM
Re: directories under /home/ftp
As a test try to create the dir /home/ftp/tmp/mklim and then try to cd to mklim. You should arrive in /home/ftp/tmp/mklim.
Ovidiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2001 03:59 AM
01-07-2001 03:59 AM
Re: directories under /home/ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2001 10:29 PM
01-07-2001 10:29 PM
Re: directories under /home/ftp
As 'ftpd' does a chroot, all reference to '/' will be translated to /home/ftp
That's why /tmp becomes /home/ftp/tmp...
There is no way to access anything outside the /home/ftp tree, unless you're using a different ftpuser. This restriction only applies to anonymous access.
If you want your users to access their home directory on the system, they should use their own login name and password.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2001 11:33 PM
01-07-2001 11:33 PM
Re: directories under /home/ftp
If you want to give anonymous users access to files residing elsewhere on the SAME filesystem as ftp HOME, you may use a physical link (ln) to that file. Don't use symbolic link (ln -s) because of the chroot() done by ftpd.
The limitations are the following:
Original file must reside on SAME filesystem to create a physical link.
You won't be able to use physical links on directories because it's limited to files; if you have many files to share you'll have to create multiple physical links.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2001 11:35 PM
01-07-2001 11:35 PM
Re: directories under /home/ftp
Because it is an anonymous ftp site, the users use internet broswer from PC to get the file. I should have put all the files/directories under /home/ftp, this is straight forward but somehow my requirement is little bit different. There are couple of directories that I want them to be linked to /home/ftp so that anonymonus users still can reach them. These directories were initially put at some where else outside /home/ftp (it is actually the /home/tester/tested_data.)
So, my present method is to use nfs mount on the same system (sound stupid ?). I am looking forward some other methods. I tried ln with no success. I ever think about moving all the directories to /home/ftp and ln them back to /home/tester ... but this is not what I am looking for.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2001 11:49 PM
01-07-2001 11:49 PM
Re: directories under /home/ftp
In your /etc/passwd file, rename /home/ftp to /home/tester/test_data. Subsequently cp -ipR /home/ftp/* /home/tester/test_data/
Thus, instead of an anonymous user chroot to /home/ftp, the anonymous user will chroot to /home/tester/test_data instead.
If you want all readable user files under /home to be accessed via anonymous ftp, modify /etc/passwd, rename to /home/ftp to /home instead and follow the same steps. Note however that you are risking a security compromise for the access of readable files from /home onwards.
The bin, etc and lib directories need to be copied for chroot to work because commands like ls needs to be accessible after the chroot.
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2001 11:55 PM
01-07-2001 11:55 PM
Re: directories under /home/ftp
Because of the chroot(), there's not much you can do, apart from either copying the files to /home/ftp or mounting them with nfs as you already tried.
I know that this doesn't sound very effective, but having a system widely open to anonymous users would be a major security issue.
If /home/ftp and /home/tester are on the same filesystem, you may still use the physical link to individual files as I told you in my previous post.
This should work for you.
Good luck,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2001 12:32 AM
01-08-2001 12:32 AM
Re: directories under /home/ftp
If you only intend to share out the /home/tester2/test_data directory over anonymous ftp, then a chroot to /home/tester2/test_data would have minimal security implications since only /home/tester2/test_data and beyond is accessible by any anonymous ftp user.
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2001 11:08 AM
01-08-2001 11:08 AM
Re: directories under /home/ftp
/home/ftp/ftpdir1
/home/ftp/ftpdir2
/home/ftp/ftpdir3
then if you want them to have different names you have to make links from that dir to /home/ftp/ftpdir1
I wouldn't recommend to do this for /tmp or /var or any other system dir, but you can create subdirs and link them there. NFS is an option too.
Ovidiu
Ovidiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2001 11:48 AM
01-08-2001 11:48 AM
Re: directories under /home/ftp
Paul