HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricted FTP unable to view file by ls
Operating System - HP-UX
1837791
Members
3189
Online
110120
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-14-2001 09:53 AM
02-14-2001 09:53 AM
hello!
I was wondering if someone can guide to
enable restricted ftp on my system.
So that the users can not look at the listing
by ls, they can get the files that they
know exist.
Thanks,
Farida
I was wondering if someone can guide to
enable restricted ftp on my system.
So that the users can not look at the listing
by ls, they can get the files that they
know exist.
Thanks,
Farida
Doing something imperfectly is better than doing perfectly nothing
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 10:43 AM
02-14-2001 10:43 AM
Solution
Hi,
To disallow a FTP user from viewing a file by ls, simply chmod 111 (ie. d--x--x--x) the FTP directory so that the user can only cd to the FTP directory but not read the contents of the directory via ls (which requires permissions 555).
For the files residing in the FTP directory itself, they must have at least the permission 444 (ie. -r--r--r--) in order to allow the download (ie get) to work.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
To disallow a FTP user from viewing a file by ls, simply chmod 111 (ie. d--x--x--x) the FTP directory so that the user can only cd to the FTP directory but not read the contents of the directory via ls (which requires permissions 555).
For the files residing in the FTP directory itself, they must have at least the permission 444 (ie. -r--r--r--) in order to allow the download (ie get) to work.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 10:49 AM
02-14-2001 10:49 AM
Re: Restricted FTP unable to view file by ls
I'm not sure I understand what your trying to do.
If your meaning your restricted ftp users are not able to do an ls to list the files...then that is probably because you copies /usr/bin/ls over to their directory and you should have copies /sbin/ls like this:
cp /usr/sbin/pwd /home//bin
cp /sbin/ls /home//bin
Than did a chmod 0111 /home//bin/*
...Now if what your meaning is that your trying to control your ftp users from moving around and seeing other things than you probably want to do a chroot...take a look at this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x05970559ff7cd4118fef0090279cd0f9,00.html
/rcw
If your meaning your restricted ftp users are not able to do an ls to list the files...then that is probably because you copies /usr/bin/ls over to their directory and you should have copies /sbin/ls like this:
cp /usr/sbin/pwd /home/
cp /sbin/ls /home/
Than did a chmod 0111 /home/
...Now if what your meaning is that your trying to control your ftp users from moving around and seeing other things than you probably want to do a chroot...take a look at this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x05970559ff7cd4118fef0090279cd0f9,00.html
/rcw
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP