- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Creating a secure ftp user
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
11-18-2004 12:53 PM
11-18-2004 12:53 PM
I have been trying to create an ftp user that can login into a specific directory and can not cd .. or change to another directory.
Is this possible. I have considered using the restricted user shell with no success.
regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 01:00 PM
11-18-2004 01:00 PM
SolutionYou will need to use 'ftpaccess' file with 'chroot'ed home directory.
1. Make the user's home directory like /home/user/./ in /etc/passwd file.
2. Create a group say 'ftponly' and change the primary group of the user to ftponly.
3. Add the following lines to your /etc/ftpd/ftpaccess file (if you don't have an ftpaccess file, then copy it from /usr/newconfig/etc/ftpd/ directory)
guestgroup ftponly
With the above user will not be able to move above /home/user structure. If you want you can further set the restrictions using 'upload' directive. 'man ftpaccess' for more option.
You will have to add -a to your ftpd line in /etc/inetd.conf and refresh inetd ( inetd -c ).
BTW, this works only from 11.0 and above. For 10.20, you will have to install wu_ftp software.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 02:23 PM
11-18-2004 02:23 PM
Re: Creating a secure ftp user
You need to setup ftpaccess for this user/group. Do "man ftpaccess" for more info on ftpaccess.
Here is a sample doc from itrc on how to setup restricted ftp access for a user,
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073346999
The itrc doc id is BC0814KBRC00007719.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2004 02:25 PM
11-18-2004 02:25 PM
Re: Creating a secure ftp user
If there is a user that owns the ftpd binaries that should be the same.
Its possible with buffer overflows to trick the ftp daemon into running commands and even getting a shell prompt. This will prevent that.
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
11-18-2004 02:41 PM
11-18-2004 02:41 PM