- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restrict ftp user account to view only their d...
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
Discussions
Discussions
Forums
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
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
тАО03-09-2010 09:33 PM
тАО03-09-2010 09:33 PM
Greetings & Good day :)
Can please help to advice on the below requirement,
I have already set-up restricted ftp user account we need restrict him view only destination folders only.
more /etc/ftpd/ftpaccess
class ftpclass1 real,guest *
guestgroup resftp1
chmod no guest
suppresshostname yes
suppressversion yes
log commands anonymous,guest,real
log transfers anonymous,guest,real inbound,outbound
upload /project/ftpin /upload1 yes johntest johntest 0660 nodirs
upload /project/ftpin /upload12 yes johntest johntest 0660 nodirs
# finger johntest
Login name: johntest In real life: Johntest_ftp
Directory: /project/ftpin/./ Shell: /usr/bin/false
Last login Thu Mar 11 02:45 on ftpd5866
No unread mail
No Plan.
# ftp abcftp
Connected to abcftp.
220 FTP server ready.
Name (abcftp:root): johntest
331 Password required for johntest.
Password:
230 User johntest logged in. Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is current directory.
ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 0
drwx------ 2 0 3 96 Mar 10 13:12 testdir
drwxr-xr-x 2 118 107 96 Mar 10 10:24 upload1
drwxr-xr-x 2 118 107 96 Mar 10 10:24 upload12
drwxr-xr-x 3 0 3 96 Mar 10 11:40 usr
226 Transfer complete.
I would like "johntest" ftp account to see only upload1 & upload12 - directories only. not other folders like testdir & usr
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2010 09:44 PM
тАО03-09-2010 09:44 PM
SolutionIs chroot'd ftp user usefull for you?
http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01915901
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2010 09:48 PM
тАО03-09-2010 09:48 PM
Re: Restrict ftp user account to view only their destination folders
Link not available :(
But i have already jailed the ftp user account like they cannot go beyond, but my concern if some one create any folders than can also see
Note: We are sorry but the document you requested requires additional authorization such as a certain level of support agreement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2010 10:06 PM
тАО03-09-2010 10:06 PM
Re: Restrict ftp user account to view only their destination folders
Allows retrieval of files which would otherwise be denied by noretrieve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2010 10:36 PM
тАО03-09-2010 10:36 PM
Re: Restrict ftp user account to view only their destination folders
NO, Can please show me example , would be thanksfull :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2010 11:12 PM
тАО03-09-2010 11:12 PM
Re: Restrict ftp user account to view only their destination folders
allow-retrieve relative /upload1
allow-retrieve relative /upload12
noretrieve *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2010 11:38 PM
тАО03-09-2010 11:38 PM
Re: Restrict ftp user account to view only their destination folders
Yes this what i am looking for, :)
Many Many -- Thanks for your wonderfull Support :)
Regards,
Johnson