- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP Restriction
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
09-17-2004 10:16 PM
09-17-2004 10:16 PM
FTP Restriction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 11:12 PM
09-17-2004 11:12 PM
Re: FTP Restriction
make an entry in the /var/adm/inetd.sec file
ftp deny username
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 11:13 PM
09-17-2004 11:13 PM
Re: FTP Restriction
Not perfect but, why not setup this user just for ftp only. Don't change the group for that users to ftponly.
---
Now add a user to the system. Use a group that is 'application group' and make the user's shell /usr/bin/ftpshell.
---
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 11:23 PM
09-17-2004 11:23 PM
Re: FTP Restriction
the older reply is for an ipaddress not foe a user.
make a file ftpusers in /etc/ftpd folder
enter your user name to be restricted in that.
this will prevent that user from ftp access.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2004 04:34 AM
09-18-2004 04:34 AM
Re: FTP Restriction
You don't need to modify ftpaccess file if you want to make the user account "ftponly". Just make the shell as "/usr/bin/false" in /etc/passwd file. If you don't have a /etc/shells file, create one with all valid shells with one shell per line and add /usr/bin/false also to it. That will enable user to do ftp and not telnet/rlogin etc.,
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2004 04:31 PM
09-18-2004 04:31 PM
Re: FTP Restriction
I would restrict the ftp user, so it can not traverse the filesystem, restricted to ftp specific directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2004 04:50 PM
09-18-2004 04:50 PM
Re: FTP Restriction
Well. You can still do it even after changing the group to 'ftponly'.
1. Make the user's home directory like /home/user/./
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
guestgroup ftponly
With the above user will not be able to move above /home/user structure. Then use 'upload' directive in ftpaccess to change the ownership and group of the uploaded files. For ex., adding the following will make the ownership and group set to user and appgrp with permissions 0440.
upload /home/user * yes user appgrp 0440
You will have to add -a to your ftpd line in /etc/inetd.conf and refresh inetd - inetd -c.
-Sri