- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restricted FTP access
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
02-20-2007 06:31 PM
02-20-2007 06:31 PM
I need to create a restricted FTP user with following characteristics:
1. His home directory (/home/ftpuser) should be his root directory. i.e the ftpuser should not be able to move below his home directory.
I have tried adding /./ to his home directory in /etc/passwd but still the user is able to browse below his home directory.
2. The ftpuser should not be able to login to the system. I used the login shell as /usr/bin/false and it worked.
Here is the extract of /etc/passwd:
ftpuser:78MbM5mloIoAw:103:20::/home/ftpuser/./:/usr/bin/false
Please suggest/provide me step by step method of creating a FTP user with restricted access.
I heard that by /etc/ftpaccess entries we can achieve the same. Looking forward for your expert comments and procedures.
Points will be awarded w.r.t my query's solution :-)
Best regds,
Vinod
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 06:39 PM
02-20-2007 06:39 PM
Re: Restricted FTP access
It would be helpful to know your HP-UX release and that you are using the wu-fptd server that is standard.
My answer assumes this.
All you need to do is chroot your users in the ftpaccess file.
You will also have to provide the ls utility so they can list files.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1080103
http://www.bastille-linux.org/jay/blackhat-2002-july-Attacking-and-Securing-Unix-FTP-Servers.ppt
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 07:02 PM
02-20-2007 07:02 PM
Re: Restricted FTP access
I do not think that ftpacces can restrict the user from browsing below his own home directory; cd-restrictions only work upwards.
You would probably have to deny him access by e.g. removing the x-option from directories, but other members may bring better news!
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 07:05 PM
02-20-2007 07:05 PM
SolutionDocID is UARPAKBAN00000806
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 08:22 PM
02-20-2007 08:22 PM
Re: Restricted FTP access
Excellent Technical document!!! Served my purpose....
Thank you all for your timely help and direction...
Satisfactorily closing the thread ... Assigning points to all
Vinod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 08:24 PM
02-20-2007 08:24 PM